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.


print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'

Replies are listed 'Best First'.
Re: Re: DBI Handles (error handling)
by LanceDeeply (Chaplain) on Jan 21, 2003 at 16:14 UTC
    True. I was in such a rush to share, I didnt 'robistify' that. Will change on next coffee break!

    Update: added the Error function to print to STDERR and hold errors in an internal array