Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Pretty Dump Cross References

by LanX (Saint)
on Nov 28, 2014 at 23:54 UTC ( [id://1108678]=note: print w/replies, xml ) Need Help??


in reply to Pretty Dump Cross References

> Is there something better

what is "better"?

There are plenty of options to format the output, you should read the documentation and play around.

> or maybe an option to get a dump without reference notation

This looks promising

$Data::Dumper::Deepcopy or $OBJ->Deepcopy([NEWVAL]) Can be set to a boolean value to enable deep copies of structures. Cro +ss-referencing will then only be done when absolutely essential (i.e. +, to break reference cycles). Default is 0.

You may also want to have a look at Data::Dump which comes with nicer defaults.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

Replies are listed 'Best First'.
Re^2: Pretty Dump Cross References
by wollmers (Scribe) on Nov 29, 2014 at 00:06 UTC

    Thx

    Of course, I read the docs of Data::Dumper more than twice, and tried around some options, but did not understand some parts. Examples would say more than hundred words.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-24 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found