Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: retrieving persistent variables with Data::Dumper followed by the 'do' command

by LanX (Cardinal)
on Oct 13, 2014 at 01:50 UTC ( #1103577=note: print w/replies, xml ) Need Help??


in reply to retrieving persistent variables with Data::Dumper followed by the 'do' command

try setting $Data::Dumper::Purity=1; works for me afterwards!

HTH! :)

Cheers Rolf

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

PS: from Data::Dumper

$Data::Dumper::Purity or $OBJ->Purity([NEWVAL]) Controls the degree to which the output can be "eval"ed to +recreate the supplied reference structures. Setting it to 1 will ou +tput additional perl statements that will correctly recreate nes +ted references. The default is 0.

update

you may wanna have a look at the alternative Data::Dump module! :)

Replies are listed 'Best First'.
Re^2: retrieving persistent variables with Data::Dumper followed by the 'do' command
by johnrcomeau (Novice) on Oct 14, 2014 at 03:23 UTC
    Thanks, Rolf! I'm embarrassed that I didn't read the documentation, where it is explained very clearly. Cheers, John

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2020-11-27 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?