go ahead... be a heretic | |
PerlMonks |
Re: Looking up a hash by valueby Tyke (Pilgrim) |
on Feb 23, 2001 at 13:45 UTC ( [id://60454]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|