in reply to Re: control-d out of loop?
in thread control-d out of loop?
Thank you for helping me get my thinking straight. I was going down a wierd path.
There is one way to do it!
while (1) {
print "input your stuff : ";
last unless defined(($picks = <STDIN>));
chomp $picks;
#stuff
}
This does allow you to do a control-d and return to the master loop while the CR will just
error and return to the prompt!
Thanks again!
|
---|