Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 contemplating the Monastery: (5)
As of 2021-03-03 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (67 votes). Check out past polls.

    Notices?