Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Extract keys from an Array of Hashes

by aartist (Pilgrim)
on Dec 16, 2010 at 22:27 UTC ( [id://877557]=note: print w/replies, xml ) Need Help??


in reply to Extract keys from an Array of Hashes

See, how data structure in Perl works. It will be helpful a lot.
What you have is.
my %hash = $AoH[0]; print keys %hash;
You can just combine these too.
print keys %hash = print keys %{ hash } = print keys %{ $AoH[0] }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://877557]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-18 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found