equick has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a simple bit of code in my program which is failing to return control back after the user has entered input
print "Do you wish to continue? (yes/no): "; chomp ($resp=<>); print "resp=$resp\n";
It doesn't print anything after typing and hitting enter (just a newline), so I am stuck on how to fix this. Any help appreciated.
Thanks,
Ed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: program hangs on user input
by Anonyrnous Monk (Hermit) on Jan 28, 2011 at 10:27 UTC | |
by equick (Acolyte) on Jan 28, 2011 at 10:29 UTC | |
|
Re: program hangs on user input
by cdarke (Prior) on Jan 28, 2011 at 11:25 UTC | |
by equick (Acolyte) on Jan 28, 2011 at 12:13 UTC | |
|
Re: program hangs on user input
by Anonymous Monk on Jan 28, 2011 at 12:58 UTC |