in reply to Perl 5.8 to 5.16 and HASH error
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)?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl 5.8 to 5.16 and HASH error
by robsgoingmad (Initiate) on Sep 12, 2012 at 08:13 UTC |
In Section
Seekers of Perl Wisdom