http://www.perlmonks.org?node_id=853849


in reply to Re^5: File Reading and Closing confusion
in thread File Reading and Closing confusion


Yes and no. I was talking about:
while (<FH>) { ... }

VS
$line = <FH>; # on its own / not as while condition

Given the OP's prelude, I really thought that the OP was referring to these two cases. Sorry for the confusion! :)