7cardcha has asked for the wisdom of the Perl Monks concerning the following question:
Instead it just does nothing. Please help.$SIG{"INT"} = "interrupt"; while(1) { } sub interrupt { print "You can't kill me!"; $SIG{"INT"} = "interrupt"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Signals
by Anonymous Monk on Nov 14, 2011 at 01:39 UTC | |
by 7cardcha (Novice) on Nov 14, 2011 at 02:40 UTC | |
|
Re: Perl Signals
by Marshall (Canon) on Nov 14, 2011 at 03:54 UTC | |
by afoken (Chancellor) on Nov 14, 2011 at 10:10 UTC | |
by Marshall (Canon) on Nov 14, 2011 at 22:23 UTC | |
by afoken (Chancellor) on Nov 17, 2011 at 16:51 UTC | |
by ikegami (Patriarch) on Nov 14, 2011 at 19:30 UTC | |
|
Re: Perl Signals
by Albannach (Monsignor) on Nov 14, 2011 at 01:18 UTC |