Re: Perl XML Question
- From: Ala Qumsieh <noreply@xxxxxxxxxxx>
- Date: Tue, 05 Dec 2006 01:22:43 GMT
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
overhead..
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.
So:
use Data::Dumper;
my $stringXML = Dump($xmlIn);
--Ala
.
- References:
- Perl XML Question
- From: Ken Browning
- Perl XML Question
- Prev by Date: breaking a long arithmetic statement into multiple line
- Next by Date: Re: Perl XML Question
- Previous by thread: Re: Perl XML Question
- Next by thread: FAQ 3.7 How do I cross-reference my Perl programs?
- Index(es):
Relevant Pages
|