http://qs321.pair.com?node_id=274588


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.