Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

RE: RE: Re: Silencing the grumbling from DBD::ODBC

by jreades (Friar)
on Sep 28, 2000 at 23:40 UTC ( [id://34464]=note: print w/replies, xml ) Need Help??


in reply to RE: Re: Silencing the grumbling from DBD::ODBC
in thread Silencing the grumbling from DBD::ODBC

Personally, I'd be less that thrilled at the idea of surpressing error output -- it might actually help the user to know that something is wrong.

I've had some luck (it depends a little on what you want to do) with changing the 'execute or die' syntax to an 'execute or assign the error to a subroutine'.

Your error subroutine could then distinguish between errors as a result of access levels vs. error as a result of the database itself... and act accordingly.

Obviously, YMMV

  • Comment on RE: RE: Re: Silencing the grumbling from DBD::ODBC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://34464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-16 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found