in reply to Scoping question - will file handle be closed?
But if you changed:
to:local $/; return <$fh>;
with the idea of reading from $fh in the caller, then it will clearly remain open.# local $/; no longer useful here return $fh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Scoping question - will file handle be closed?
by Monk::Thomas (Friar) on Jul 14, 2015 at 20:45 UTC |