Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: XML::Simple "transforming data"by Thelonious (Scribe) |
on Mar 21, 2005 at 21:50 UTC ( [id://441322]=note: print w/replies, xml ) | Need Help?? |
XML::Simple's interface is pretty odd in that it outputs something different than it takes in by default. (Maybe it could be even a little more simple - and more Perlish...?) But there's an option:
...that you can use like so:ForceArray => 1 *# in - important* This option should be set to '1' to force nested elements to be represented as arrays even when there is only one.
...I think that it outputs something very similar to what you're looking for... hth
In Section
Seekers of Perl Wisdom
|
|