use DBI; my ($dbh, $sth, $count); $dbh = DBI->connect ("DBI:mysql:database=webdb;host=localhost", "webdev"," ", {PrintError=>0, RaiseError=>1});