Maybe you could initialize XML::Simple like this:
my $xmlsimple = XML::Simple->new( undef, ForceArray => 1 );
That alters the datastructure somewhat, but helps to standardize it so that you don't have array-refs disappear just because there is only one element.
Dave
In reply to Re: Error Checking for Array Reference
by davido
in thread Error Checking for Array Reference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |