in reply to Pooling DBI handles
Handling errors with print statements? Eeeeeww, how terribly sixties :)
And the error messages are not even going out on STDERR. There are better ways of signalling errors. Here's one: push them onto an internal queue, return undef, and let the client code pull them out with a Error method or some such. The client can choose to ignore them, print them to an IO handle of their choosing, email them... whatever.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI Handles (error handling)
by LanceDeeply (Chaplain) on Jan 21, 2003 at 16:14 UTC |