in reply to Need Help With Alarm And Eval
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need Help With Alarm And Eval
by PerlRocks6345 (Novice) on Dec 06, 2012 at 12:59 UTC | |
by afoken (Chancellor) on Dec 06, 2012 at 15:08 UTC | |
by PerlRocks6345 (Novice) on Dec 07, 2012 at 07:37 UTC | |
by afoken (Chancellor) on Dec 07, 2012 at 15:34 UTC |