|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Perl Signalsby Albannach (Monsignor) |
| on Nov 14, 2011 at 01:18 UTC ( [id://937847]=note: print w/replies, xml ) | Need Help?? |
|
You're making a piece of dumb text a handler. You need to reference the subroutine - try
$SIG{'INT'} = \&interrupt;
See also %SIG Ok, my bad, it seems you should be able to do what you tried (I've just never done it that way). Perhaps someone else can shed light on this. --
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||