http://www.perlmonks.org?node_id=1063597


in reply to XML Array/Hash Issue

Should you be using XML::Simple, then check the documentation for the ForceArray attribute. It will enforce that even single elements will be stored as array references.