in reply to STDIN problemo
While the problem has been solved, it has not been explained. In the first line:
Reading <STDIN> in list context reads until the end of file for STDIN. At that point, you can no longer read from STDIN, so line 4 fails:
The solutions suggested either avoid using STDIN for user input (reading from the console) or close and re-open STDIN.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: STDIN problemo
by ikegami (Patriarch) on Dec 20, 2009 at 07:48 UTC |