in reply to Dumper output not evaling properly
To see the problem's actual error, try this:
$obj = eval( $blob ) or die $@;
And here's a workaround that worked in my test:
$blob =~ s/^\$VAR\d+\s*=//; $obj = eval( $blob ) or die $@;
Updated.
The problem is that evaling $blob tries to create a global variable named $VAR1, which violates strictures, causing the eval to fail. Without the "or die..." part, it fails silently.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dumper output not evaling properly
by cormanaz (Deacon) on Mar 16, 2006 at 02:43 UTC |