in reply to unable to eval dumped hash
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unable to eval dumped hash
by jcb (Parson) on Apr 29, 2020 at 01:15 UTC | |
by afoken (Chancellor) on Apr 29, 2020 at 17:37 UTC | |
by jcb (Parson) on Apr 30, 2020 at 01:28 UTC | |
by haukex (Archbishop) on May 02, 2020 at 09:39 UTC |