in reply to utf8 && XML::Simple
Just want to point out (this is not what you're asking) that XMLin can also take a file name as first argument. So instead of:
you can just say:# Yes, I could use a different slurp funciton... my $readin=""; open (IN,"<out.xml"); while (<IN>){ $readin = $readin . $_; } close IN; my $result = XMLin($readin,KeyAttr=>{item=>'name'},ForceArray=>1);
my $result = XMLin("out.xml",KeyAttr=>{item=>'name'},ForceArray=>1);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: utf8 && XML::Simple
by zakzebrowski (Curate) on Feb 01, 2005 at 18:26 UTC | |
Re^2: utf8 && XML::Simple
by Trace On (Novice) on Apr 16, 2015 at 07:45 UTC | |
by Corion (Patriarch) on Apr 16, 2015 at 07:49 UTC | |
by Trace On (Novice) on Apr 16, 2015 at 14:15 UTC |
In Section
Seekers of Perl Wisdom