Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Beautiful recursive print

by Eily (Monsignor)
on Mar 17, 2017 at 10:37 UTC ( [id://1185007]=note: print w/replies, xml ) Need Help??


in reply to Beautiful recursive print

FYI, Data::Dump comes with Data::Dump::Filtered for which you can provide a callback that will be called on each element to be dumped. With the callback you can replace the output string entirely (eg: replace an int value with a constant, or display it in hexadecimal form), add a comment to be printed with the data, ignore some keys from a hash etc...

If it's the formatting you're after maybe perltidy can help you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found