Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: executing a OSP with CGI

by cjcollier (Novice)
on Jul 15, 2003 at 21:24 UTC ( #274588=note: print w/replies, xml ) Need Help??


in reply to Re: executing a OSP with CGI
in thread executing a OSP with CGI

You might consider initializing your $dbh thus:
$dbh = DBI->connect($dsn, $db_user, $db_pass, { RaiseError => 1 } ) or croak "Couldn't connect to database";
The RaiseError argument will allow you to avoid the
or die $dbh->errstr
on each of your database actions.

Namaste

C.J.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2023-09-21 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?