Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to get Keys from hash having same value?

by ysth (Canon)
on Jan 07, 2008 at 05:55 UTC ( #660760=note: print w/replies, xml ) Need Help??


in reply to How to get Keys from hash having same value?

@a_keys = grep { $myhash{$_} eq 'a' } keys %myhash;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-10-20 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (212 votes). Check out past polls.

    Notices?