Sprad has asked for the wisdom of the Perl Monks concerning the following question:
According to the Camel, filehandles will automatically close if they're re-open()ed. And I'd bet they also close when the program terminates. But do they ever close at any other time?
For instance, say I have this sub:
Will myfile.txt still be in use outside of writefile()?sub writefile { open (FILE, ">>myfile.txt"); print FILE "hello\n"; }
---
A fair fight is a sign of poor planning.
Back to
Seekers of Perl Wisdom