Hey everybody,
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.
--Eric
--
"It is impossible to make anything foolproof because fools are so
ingenious."
-- Murphy's Second Corollary
---------------------------------------------
http://scratchcomputing.com
---------------------------------------------