using indirect File Handles would have presumably saved me from that
Indirect filehandles get automatically closed (and therefore flushed) when the variable holding them goes out of scope. So it may have solved your problem, but only if the filehandle variable went out of scope before you renamed the file. This technique doesn't automatically solve your problems.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In reply to Re^5: data leak using package
by davorg
in thread data leak using package
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |