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

    As shown in the debug session output, it's compiling fine. 1/0 is a runtime divide by 0 error and that was what I expected. But that is not my question here. This is just some sample code that I put in here to explain my doubt.