Is there a simpler way to do this with higher order functions like map and grep?
Of course you can transform a for-loop into a map/grep construct, populating the return value \%output in one fell stroke (why isn't that a reference in the first place, if that is what is returned?) - but I doubt you would save significant lines of code, or improve readability. Job well done, move on :-)
In reply to Re: A more elegant way to filter a nested hash?
by shmem
in thread A more elegant way to filter a nested hash?
by jimpudar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |