C
cartercc
Reading from a database, I read the data into a hash of hashes.
Actually the last hash is the key to an anonymous array, which is what
I really want to get at, but one step at a time.)
I have a subroutine that prints these values out very nicely, like this
$hash1key->$hash2key->value1 value2 value3 etc. The values are what I
really want.
All this goes into a here document (which will be either XML or XHTML).
Is there a way to variable interpolate the return value from the
subrouting into the here document? Or perhaps to print directly from
the subroutine?
I've set my routine up as an anonymous subroutine with a reference to a
scalar, but all I get when I read the reference in my output is a
CODEREF and a hex dump. I've tried every permutation I can think of,
disambiguating with braces, etc., but I haven't found any way to make
this work, yet. I guess I could turn my here doc into a series of print
statements, but I really don't want to do that.
Thanks for all suggestions, CC.
Actually the last hash is the key to an anonymous array, which is what
I really want to get at, but one step at a time.)
I have a subroutine that prints these values out very nicely, like this
$hash1key->$hash2key->value1 value2 value3 etc. The values are what I
really want.
All this goes into a here document (which will be either XML or XHTML).
Is there a way to variable interpolate the return value from the
subrouting into the here document? Or perhaps to print directly from
the subroutine?
I've set my routine up as an anonymous subroutine with a reference to a
scalar, but all I get when I read the reference in my output is a
CODEREF and a hex dump. I've tried every permutation I can think of,
disambiguating with braces, etc., but I haven't found any way to make
this work, yet. I guess I could turn my here doc into a series of print
statements, but I really don't want to do that.
Thanks for all suggestions, CC.