There's more than one way to do things | |
PerlMonks |
Re: Map multiple xml tags to arrayby scorpio17 (Canon) |
on Aug 14, 2014 at 13:46 UTC ( [id://1097425]=note: print w/replies, xml ) | Need Help?? |
I think this line is your problem:
If $players is a hashref, and you want to build an array of hashrefs, you should do something like this:
If you want to convert a hashref into an array, you would do something like this:
Note that the hash "names" will be at indexes 0,2,4,6... and the hash "values" will be indexes 1,3,5,7... I hope that helps!
In Section
Seekers of Perl Wisdom
|
|