in reply to Control C in PERL?
is all you need to ingore CNTRL-C. You can assign a reference to a subroutine if you need fine control:$SIG{INT} = 'IGNORE';
$SIG{INT} = \&interrupt; sub interrupt { print STDERR "Caught a control c!\n"; exit; # or just about anything else you'd want to do }
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Control C in PERL?
by brassmon_k (Sexton) on Apr 21, 2001 at 01:35 UTC |