Yes. Add the ForceArray => 1 option on the constructor, then XML::Simple will always return an array even if it only contains one element. See the POD for details.
In reply to Re: XMLin : Optimal Way to tell the difference between Array vs Scalar
by BrowserUk
in thread XMLin : Optimal Way to tell the difference between Array vs Scalar
by tptass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |