in reply to Stopping execution of an eval statement
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stopping execution of an eval statement
by slloyd (Hermit) on Jul 23, 2005 at 20:51 UTC | |
by polettix (Vicar) on Jul 23, 2005 at 21:12 UTC | |
by slloyd (Hermit) on Jul 25, 2005 at 12:37 UTC |