sub long { 1 while 1 } $SIG{INT} = sub { die "got int\n" }; eval {long}; print "got err: $@\n" if $@; __END__ $ ./perl /tmp/p got err: got int $
Dave.
In reply to Re: Stopping execution of an eval statement
by dave_the_m
in thread Stopping execution of an eval statement
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |