Thank you a lot. Now I finally understand it. My problem was always that I did not take the container elements (in this example "wife" and "kids") into account. So DumpTree did not recurse.
The same solution with positive logic would then be:
return('HASH', undef, grep { /^name|kids|wife$/} keys %$s) ;And of course you are right. I should describe what exactly did not work if I use a non-standard module.
In reply to Re^4: Help to understand the Data::TreeDumper Filters
by Dirk80
in thread Help to understand the Data::TreeDumper Filters
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |