in reply to lexical variables and signal handlers
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);
|
|---|