in reply to Database Connectivity

When using DBI you can save some typing by setting:
$dbh->{'RaiseError'} = 1;
after connecting to the database. Then you don't have to write:
$sth->prepare("YOUR SQL HERE")or die "blah $DBI::errstr";
You can just write:
$sth->prepare("YOUR SQL HERE");
If the function fails, DBI will die and give you the reason.