Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: keys of hash of reference to hash

by elusion (Curate)
on Jan 28, 2003 at 00:59 UTC ( #230437=note: print w/replies, xml ) Need Help??


in reply to keys of hash of reference to hash

Short answer:
foreach my $key (keys %{$matches->{$pid}}) {

Long answer:
You can think of $matches->{$pid} as the name of your hash. So now that you have the name, you put the hash symbol (%) in front and wrap it in curly braces to disambiguate, and you're all set.

elusion : http://matt.diephouse.com

Replies are listed 'Best First'.
Re: Re: keys of hash of reference to hash
by melguin (Pilgrim) on Jan 28, 2003 at 01:03 UTC
    Shout praises to the all-mighty {}!!!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2019-07-19 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?