in reply to Re^4: Parsing hash from XML::Simple
in thread Parsing hash from XML::Simple

Please note that NetWallah suggested

foreach my $vals (values %{ $xml }) {

and not what you wrote:

foreach my $vals (%{$xml}) {

The two are distinctly different.