Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 about the Monastery: (3)
As of 2020-08-05 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (35 votes). Check out past polls.

    Notices?