|
|
| go ahead... be a heretic | |
| 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?? |
|
Or, to avoid the extra hash lookups, iterate over key-value pairs using each.
Update: Is there a monk among us who can shorten this into a one-liner, similar to the grep keys examples we have seen? It seems that each does not combine nicely with grep, map and their ilk.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||