I would create a shallow copy and delete the keys there
An alternative:
sub debug_hash ( $hashref, $bad_keys = [qw/ schema logger /] ) { delete local @$hashref{ @$bad_keys }; print Dumper $hashref; }
In reply to Re^2: Hash/Array slice : how to exclude items?
by haukex
in thread Hash/Array slice : how to exclude items?
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |