in reply to Re^5: File Reading and Closing confusion
in thread File Reading and Closing confusion
-
Yes, but while takes care of that - and we/you were talking about a while loop, weren't you?
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! :)
|
---|
In Section
Seekers of Perl Wisdom