On Mon, 21 May 2001, Rodney Broom wrote:

>   $dbh = DBI->connect($dsn, dbusrname, dbpassword)
>     or die "Error: $DBI::errstr";

If you want to die then

 $dbh = DBI->connect($dsn, dbusrname, dbpassword, { RaiseError => 1});

would look neater.

s/Raise/Print/ to just have it spew the error messages to the log
without having to put 'or warn "..."' after every other line.


 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/   !try; do();
more than 100M impressions per day, http://valueclick.com

Reply via email to