There's more than one way to do things | |
PerlMonks |
Re: Re: Re: XML::Simple parsing :-(by chip (Curate) |
on Jun 19, 2003 at 22:28 UTC ( [id://267372]=note: print w/replies, xml ) | Need Help?? |
Please read the documentation on XML::Simple, hm? Save us all a lot of time. It's a good module if you know how to use it.
According to that documentation, you probably want the ForceArray option: my $ref = $xs->XMLin($doc, ForceArray => [ 'incident' ]); PS: You don't need quotes on $doc when you're passing it to the subroutine. -- Chip Salzenberg, Free-Floating Agent of Chaos
In Section
Seekers of Perl Wisdom
|
|