in reply to Re^3: Stopping execution of an eval statement
in thread Stopping execution of an eval statement
use strict; $|=1; sub long { 1 while 1 } $SIG{INT} = sub { die "got int\n" }; print "SIG{INT}=$SIG{INT}\n"; eval {long}; print "got err: $@\n" if $@; print "Loop after first eval\n"; while(1){ select(undef,undef,undef,.25); } print "OK I am a done\n"; __END__
|
|---|