Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Thilosophy (Curate)
on Jan 07, 2008 at 07:32 UTC ( #660774=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @as = ();
    while (my ($key, $value) = each %myhash){
       push @as, $key if $value eq 'a';
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2020-08-05 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (36 votes). Check out past polls.

    Notices?