Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Extract keys from an Array of Hashesby bradcathey (Prior) |
on Dec 16, 2010 at 17:02 UTC ( [id://877524]=perlquestion: print w/replies, xml ) | Need Help?? |
bradcathey has asked for the wisdom of the Perl Monks concerning the following question: Fellow Monasterians, It's easy enough to get the keys in a hash, but what about an array of hashes? All I really need are the keys from just one of the array elements, because the way I'm using the AoH, all the keys are the same in each element of the array. It would look something like this:
Of course, that barfs. Is there a way to do this? TIA
—Brad "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
Back to
Seekers of Perl Wisdom
|
|