|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Is there a simple syntax to logically slice a hash?by Athanasius (Vicar) |
| on Feb 21, 2013 at 15:38 UTC ( #1019965=note: print w/ replies, xml ) | Need Help?? |
|
You can take a functional approach and chain grep and map on a single line:
Output:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||