foreach $key (keys %{$Xml->{data}}){ ... }
In the quoted code, $Xml is used as a hash reference. Further in your post, you say
$Xml->[data] contains a number of xml tags and data values.Note the difference: curly versus square braces. (I am assuming you meant to write $Xml->[data] in a code block because as it stands, it renders as a dead <a> link.)
So which is it: a hash reference (curly braces) ofor an array reference (square braces)?
In reply to Re: Perl 5.8 to 5.16 and HASH error
by AnomalousMonk
in thread Perl 5.8 to 5.16 and HASH error
by robsgoingmad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |