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


in reply to XML to Hash Truncating Keys Problem

Update:

The solution that I have found is much simpler and elegant and doesn't appear to produce any errors in the output. It uses the XML::Fast library:

use XML::Fast; my($hash)=xml2hash($xml);

Cheers!