in reply to Simple Question
$SIG{QUIT} = \&catchQuit
where catchQuit is the name of your sub to handle ^c.
To ignore ^c altogether, try
$SIG{QUIT} ='IGNORE';
and to restore it:
$SIG{QUIT}='DEFAULT'
PEACE
scmason
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Simple Question
by hopes (Friar) on Oct 24, 2001 at 13:36 UTC | |
|
Re: Re: Simple Question
by scmason (Monk) on Oct 24, 2001 at 21:14 UTC |