That said I assume that you want to a bit more than just trigger an alarm so it might help if you could give it bit more contextalarm(1); while(1) { my $var = "wibble"; $SIG{ALRM} = sub { die "borked on $var"; }; } alarm(0);
In reply to Re: lexical variables and signal handlers
by Lachesis
in thread lexical variables and signal handlers
by !unlike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |