Guest_imported
New member
- Jan 1, 1970
- 0
I have a part of my script 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:
while (@a = <STDIN>)
{
print @a;
}
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:
while (@a = <STDIN>)
{
print @a;
}