Curiously, I was on the right track because I was looking at List::Util qq(pairs) to solve this but it only seemed to work on arrays. I didn't see pairgrep , looks very useful. I'll try that today after studying your example.
In reply to Re^2: How to grep for values & see the keys?
by misterperl
in thread How to grep for values & see the keys?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |