Eric Wilhelm wrote:
Just spent way too much time trying to find a bug when it turns out that I just had a full disk. So, food for thought for today: close() does not always return true.
close(FILE) or die "file error: $!";
In the disk-full case, open() succeeds (if there are still inodes available), but close fails because the buffers cannot be flushed.

You don't already check the return value of every system call?

Too tedious?  Just use IO::All.

Sam.

Reply via email to