The normal approach for nested data is to write a recursive "walker" and that's what you did.
The only tip I could probably have is trying hash slices as filters, but only if performance mattered.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: 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: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |