Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: XML::Simple Array bombs out with 1 Item in document

by Anonymous Monk
on Jun 14, 2012 at 20:00 UTC ( #976293=note: print w/ replies, xml ) Need Help??


in reply to Re^2: XML::Simple Array bombs out with 1 Item in document
in thread XML::Simple Array bombs out with 1 Item in document

That's great. But I hear the code doesn't work well when there is only 1 item.

And that's the case that derby is talking about. You could check to see if you've got a hash (1 item) or an array (2+ items), using ref, or see about making them always be arrays in the module's options (see ForceArray).


Comment on Re^3: XML::Simple Array bombs out with 1 Item in document

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://976293]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-29 01:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls