close() or die
From: John Bokma (postmaster_at_castleamber.com)
Date: 12/31/04
- Next message: PerlFAQ Server: "FAQ 8.42: How do I make a system() exit on control-C?"
- Previous message: Paul Lalli: "Re: need help reading source code: HTML::Parser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Dec 2004 16:54:18 GMT
Recently a customer reported that a Perl script I had written suddenly
reported an error.
It turned out that it failed on the close (it died and reported that the
close failed after writing to the file).
It turned out that his disk quota had exceeded. So it seems that the close
flushed the buffer, which failed, and my script nicely reported this.
Bottomline: check your close. Without this it would have not been obvious.
Even if I use auto-vivication, I close explicitly.
-- John Small Perl scripts: http://johnbokma.com/perl/ Perl programmer available: http://castleamber.com/ Happy Customers: http://castleamber.com/testimonials.html
- Next message: PerlFAQ Server: "FAQ 8.42: How do I make a system() exit on control-C?"
- Previous message: Paul Lalli: "Re: need help reading source code: HTML::Parser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|