Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by LanX (Saint)
on Oct 13, 2014 at 01:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1103577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2024-04-25 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found