The problem is local inside sub On. Perl restores $SIG{'ALRM'} as soon as On returns. You have no other handler for that signal, so the default handler kicks in and kills perl.
Alexander
In reply to Re: Need Help With Alarm And Eval
by afoken
in thread Need Help With Alarm And Eval
by PerlRocks6345
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |