IMHO all the edge cases are easier covered with a for loop over the filter and if-else chains.
Just my 0.02$
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^7: A more elegant way to filter a nested hash?
by LanX
in thread A more elegant way to filter a nested hash?
by jimpudar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |