You might want to use XML::Simple's forcearray option for XMLin, which will create an array even when there is only one nested element, thus removing the need for checks.
In reply to Re: Testing Complex Data Structures
by mirod
in thread Testing Complex Data Structures
by epoptai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |