Thanks for the input!
I do agree this is quite a bit more elegant. Hash slicing is very nicely suited to this problem.
I will need to put together a set of test cases for this function anyways, so I will try out all the versions posted so far and report back on the Benchmark results.
Best,
Jim
πάντων χρημάτων μέτρον έστιν άνθρωπος.
In reply to Re^3: A more elegant way to filter a nested hash?
by jimpudar
in thread A more elegant way to filter a nested hash?
by jimpudar
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |