The following code:
use strict; use warnings; my $timeout = 2; eval { local $SIG{ALRM} = sub { die "alarm\n" }; alarm $timeout; here: goto here; printf "Got past the goto!\n"; alarm 0; }; print "ERROR: $@" if $@;
Prints:
ERROR: alarm
which indicates that a simple non-terminated loop is not the problem. Me thinks you need to look closer at what openRemoteSql is doing.
In reply to Re: Not getting the expected result when using eval/alarm
by GrandFather
in thread Not getting the expected result when using eval/alarm
by McDarren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |