in reply to Changing $@ in debug mode
Have you tried your script outside of the debugger?
eval {1/0} is a compile time error untrappable by block-eval. You will need to use string-eval to postpone that error, or make the constant expression a variable expression that cannot be optimized:
# string-eval eval "1/0"; my $div = 0; eval { 1 / $div };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Changing $@ in debug mode
by nbokare (Novice) on Dec 02, 2010 at 12:58 UTC |