Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Looking up a hash by value

by Tyke (Pilgrim)
on Feb 23, 2001 at 13:45 UTC ( [id://60454]=note: print w/replies, xml ) Need Help??


in reply to Looking up a hash by value

If you looking up a lot of hashes by value then you might want to create a lookup hash like
my %lookup;
$lookup{$_}++ for values %whop;

Then your test can become something like

print for map{exists $lookup{$_} ? "$_*\n" : "$_\n"} @newest_members;
Warning: untested code but it should give you the idea

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found