Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Thilosophy (Curate)
on Jan 07, 2008 at 07:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://660774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found