in reply to use of eval and Data::Dumper
my $data = eval "no strict; $r2";
The no strict is needed because the output from Data::Dumper has new variables without declaring them. Instead you could also tweak Data::Dumper's option prior to dumping.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use of eval and Data::Dumper
by Your Mother (Archbishop) on Sep 27, 2008 at 19:01 UTC |