With $line=<FH>, we need to check for defined-ness.
No. While there are lines read, they are defined since they have $/ attached. If $/ is undef, no point for while, since that's slurp mode. An empty string on the last line with no $/ is - no line.
In reply to Re^3: File Reading and Closing confusion
by shmem
in thread File Reading and Closing confusion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |