Okay. This should be easy but I am just not getting it.
I have a routine with a menu that calls sub routines.
The subroutine is supposed to take input, do its thing, display, results, take input.
This process is to continue till a control-d is entered.
What i basically have is...
Now the if does not work at all. Is there a way to check for a control-d being entered?while (1) { chomp($picks = <STDIN>); if ($picks eq /\cD/ { last; }
Edit kudra, 2001-12-03 Added code tags
In reply to control-d out of loop? by Marza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |