in reply to readline() on unopened filehandle
To answer your question, anyway, on the last line of your input file the file itself gets closed, so you can operate on that $line, but you can't read further lines. What did you expect to do?!? Update: ignore this, I didn't notice your typo. Right answer e.g. at Skeeve's reply.
|
|---|