In general, I find using map or grep on keys %hash is usually all you need. If you really want to get complex, there are some ideas in the book 'Higher Order Perl' that allow you to do some interesting things.
But honestly, what's wrong with: grep { $hash{$_} == $expr } keys %hash; ?
In reply to Re: map and grep (but for hashes)
by DStaal
in thread map and grep (but for hashes)
by zerohero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |