The default behavior of $SIG{INT}, the keyboard interrupt, is determined by the OS. On *nixen it is the system's process termination function, exit(), and you can probably rely on a system doing its own version of that if signals exist at all. The *nix behavior is POSIX standard.
Perl does not set its own handler, so anything that leaves $SIG{INT} undefined will work.
or maybe [for self-documentation - thanks to broquaint for asking]{ local $SIG{INT}; }
will do.{ undef local $SIG{INT}; }
After Compline,
Zaxo
In reply to Re: Signals and 'IGNORE'
by Zaxo
in thread Signals and 'IGNORE'
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |