which keeps the loop from prematurely terminating if the $line read happens to be false. This is not done for you using the OO methods.while ( defined( my $line = readline($fh) ) )
In reply to Re^7: Passing a file handle to a sub. I still don't get it.
by ysth
in thread Passing a file handle to a sub. I still don't get it.
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |