in reply to Re^8: Passing a file handle to a sub. I still don't get it.
in thread Passing a file handle to a sub. I still don't get it.

^D should yield an eof, which should result in readline returning undef, not "", so the defined() wouldn't make a difference.

A false line happens without mucking with $/ when you have a 0 at the end of a file, not followed by a newline.

  • Comment on Re^9: Passing a file handle to a sub. I still don't get it.