Hi guys,
I need some help on how to code something. I've got a script that does the following (in perl)
$continue = 1;
while ($continue) {
&dowork;
&sleep(600);
}
What I want is a clean way for the user to quit this program. If the user doesn't type anything, or presses keys other than, say, 'q', for the program to continue looping. I apparently can't use threads because when I tried, the script broke and said that this version of perl wasn't compiled for threads.
Any suggestions?
I need some help on how to code something. I've got a script that does the following (in perl)
$continue = 1;
while ($continue) {
&dowork;
&sleep(600);
}
What I want is a clean way for the user to quit this program. If the user doesn't type anything, or presses keys other than, say, 'q', for the program to continue looping. I apparently can't use threads because when I tried, the script broke and said that this version of perl wasn't compiled for threads.
Any suggestions?