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