If i die in the handler, then the whole script would stop processing,not just the eval statement, right?Wrong.
die inside an eval is a common idiom to have exception handling in Perl (see eval for examples, BTW). If you look at the example by dave_the_m, you'll see that the line after eval {long}; is printed - probably after the user has hit CTRL-C.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
In reply to Re^3: Stopping execution of an eval statement
by polettix
in thread Stopping execution of an eval statement
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |