Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Hash/Array slice : how to exclude items?

by hippo (Bishop)
on Jan 24, 2023 at 13:46 UTC ( #11149818=note: print w/replies, xml ) Need Help??


in reply to Hash/Array slice : how to exclude items?

Sounds like you want Data::Dump::Filtered:

#!/usr/bin/env perl use strict; use warnings; use Data::Dump 'dumpf'; my $hr = { schema => 'foo', whatever => 'you want', log => 'bar', quux => { log => 'baz', still => 'want this' } }; print dumpf ( $hr, sub { return {hide_keys => [qw/log schema/]}; } ) . "\n";

🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2023-03-22 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?