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.
In reply to Re: use of eval and Data::Dumper
by moritz
in thread use of eval and Data::Dumper
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |