To get rid of $VAR1 I set $Data::Dumper::Terse = 1; (also relevant $Data::Dumper::Varname).
The idiom I use for eval'ing is:
my $result = eval { $hash }; if( $@ || ! $result ){ die "error eval: $@" }
For "undumping" there is also Data::Undump which claims to be secure, I guess that's in reference to the eval? But it's not clear to me.
In reply to Re: unable to eval dumped hash
by bliako
in thread unable to eval dumped hash
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |