You can use the RaiseError option in the connect() method to automatically "status check" all calls to database functions, a nice little time saver. Note: you still have to status check the connect() method itself. . .
my $dbh=DBI->connect($db,$username,$pass,{RaiseError => 1}) or die("Co
+uldn't connect to database ".DBI::errstr);
and the statement
$dbh->do($sql);
will automatically have status checking done for it, as well as any other calls to DBI.
-Any sufficiently advanced technology is
indistinguishable from doubletalk.