![]() |
|
"be consistent" | |
PerlMonks |
quiting programby Anonymous Monk |
on May 31, 2002 at 19:31 UTC ( [id://170812]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a part of my scripts where I want it to quit only after I type the <Ctrl> c three times instead of just once. In this part of the script if I type <Ctrl> c once it exits the scripts but I want it to exit after three times of <Ctrl> c .
How would I make a global variable to store the number of times <Ctrl> c is used in this part of my script??
Here is my input part:
Back to
Seekers of Perl Wisdom
|
|