Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: keys of hash of reference to hash

by elusion (Curate)
on Jan 28, 2003 at 00:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://230437]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found