brassmon_k has asked for the wisdom of the Perl Monks concerning the following question:
Is there anyway in a PERL script to do this:
I have an infinite loop statement but I want the script to not be terminated if someone does a control C ^C. Is there actually a way to tell PERL to ignore a ^C and continue with the loop. I tried telling it yeah, and I tried the slashes the quotes and everything but it still doesn't want to recognize the ^C
I tried it many ways but the below is just an example:
I have an infinite loop statement but I want the script to not be terminated if someone does a control C ^C. Is there actually a way to tell PERL to ignore a ^C and continue with the loop. I tried telling it yeah, and I tried the slashes the quotes and everything but it still doesn't want to recognize the ^C
I tried it many ways but the below is just an example:
if ($input = '^C') { keep running loop }
|
---|
Replies are listed 'Best First'. | |
---|---|
(jeffa) Re: Control C in PERL?
by jeffa (Bishop) on Apr 18, 2001 at 01:40 UTC | |
by brassmon_k (Sexton) on Apr 21, 2001 at 01:35 UTC | |
Re: Control C in PERL?
by AgentM (Curate) on Apr 18, 2001 at 01:52 UTC | |
by idnopheq (Chaplain) on Apr 18, 2001 at 06:54 UTC | |
Re: Control C in PERL?
by jwest (Friar) on Apr 18, 2001 at 01:43 UTC | |
Re: Control C in PERL?
by buckaduck (Chaplain) on Apr 18, 2001 at 01:44 UTC |
Back to
Seekers of Perl Wisdom