Re: Perl XML Question

Ken Browning wrote:

I think I need to convert the XML hash structure to a string prior to
posting. Is there a way to do this easily? I know I could write the
XML back to a file using Dumper and then slurp it into a string
variable, but there must be a way to do it without the file i/o

I see this a lot. People are so used to using Data::Dumper with print(),
that they fail to realize that the Dump() function simply returns a string.

use Data::Dumper;
my $stringXML = Dump($xmlIn);



Relevant Pages