That, however stylish it may be, using lexical file handles will not resolve the root cause of the problem. The file handle is being closed and reopened in a logically correct location.
Update: Updated statement to clarify.
--MidLifeXis
In reply to Re^2: Close a file and reopen a new one at midnight
by MidLifeXis
in thread Close a file and reopen a new one at midnight
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |