However, this automatic close does not check for errors, so it is better to explicitly close filehandles, especially those used for writing
Besides knowing it, I always wondered what you're meant to do if you detect an error when closing a file?
In reply to Re^2: Scoping question - will file handle be closed?
by BrowserUk
in thread Scoping question - will file handle be closed?
by Monk::Thomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |