in reply to Re^6: 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.
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) ) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Passing a file handle to a sub. I still don't get it.
by Anonymous Monk on Jun 10, 2005 at 20:57 UTC | |
by ysth (Canon) on Jun 12, 2005 at 04:55 UTC |