in reply to Error Checking for Array Reference

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