Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 contemplating the Monastery: (6)
As of 2020-10-20 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?