P is for Practical | |
PerlMonks |
Re: "close" failingby Herkum (Parson) |
on May 31, 2006 at 12:55 UTC ( [id://552775]=note: print w/replies, xml ) | Need Help?? |
When you are opening, printing to or closing a file you should always die. There can be things going on with a file besides you trying to write to it (for example someone deletes it while you still have it open). If you die it will tell you what it thinks is going on and gives you a hint that there may be something there that you need to look into.
In Section
Seekers of Perl Wisdom
|
|