Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by hippo (Bishop)
on Jan 24, 2023 at 13:46 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found