See. the eval docs for more info.{ alarm 2; ## don't set this globally! local $SIG{ALRM} = sub { die "timed out" }; eval { callfc() }; ## continue to next iteration if timed out next if $@ and $@ =~ /^timed out$/; }
_________
broquaint
In reply to Re: GOTO, Signals and Win32
by broquaint
in thread GOTO, Signals and Win32
by kakaze
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |