in reply to Re^7: Scoping question - will file handle be closed?
in thread Scoping question - will file handle be closed?
Given that close can only return 3 errors; and two of those shouldn't be possible in tested code;
it's hard to see how croak("E: Unable to close file handle for $file: $!");
can "results in a nice explanation what went wrong".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Scoping question - will file handle be closed?
by Monk::Thomas (Friar) on Jul 14, 2015 at 21:48 UTC | |
by BrowserUk (Patriarch) on Jul 14, 2015 at 21:54 UTC | |
by Monk::Thomas (Friar) on Jul 14, 2015 at 22:25 UTC |