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).
In reply to Re^3: XML::Simple Array bombs out with 1 Item in document
by Anonymous Monk
in thread XML::Simple Array bombs out with 1 Item in document
by roncoe2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |