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.
In reply to Re: DBI Handles (error handling)
by grinder
in thread Pooling DBI handles
by LanceDeeply
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |