in reply to A Little review for a little DBI and CGI?
That should be or instead of ||. Common mistake which means your die will never run. This is the only serious error I found (though repeated a few times).
I was going to suggest an alternative here but I decided I actually like your method best.
I tend to use warn rather than die when reporting a failure of close. Usually close only fails when a buffer flush fails (usually due to lack of disk space) so there are cases where you want to take more drastic action, but I don't see this as one of them.
All in all a pretty clean chunk of code.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: A Little review for a little DBI and CGI?
by coolmichael (Deacon) on Mar 28, 2001 at 13:46 UTC | |
by tye (Sage) on Mar 28, 2001 at 20:38 UTC |