in reply to Re^4: Where did $@ go?
in thread Where did $@ go?
But that doesn't claim anything for the error situation. For example the following will (at least in Perl 5.12, and earlier versions) wipe $@ even though there is an error:
sub Eater::DESTROY { eval { 1 }; }; my $ok = eval { my $foo = bless {}, 'Eater'; die "Booo!"; 1; }; warn "OK: [$ok]"; warn "\$\@: [$@]";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Where did $@ go?
by John M. Dlugosz (Monsignor) on Mar 21, 2011 at 12:18 UTC |