$SIG{'INT'} = sub {print "Caught One!\n"};
See perlvar and perlipc for more info.
After Compline,
Zaxo
In reply to Re: How do we capture CTRL^C
by Zaxo
in thread How do we capture CTRL^C
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |