in reply to DBI->connect using 'old-style' syntax is deprecated and will be an error in future versions

The "old style" error is because you're specifying the driver name as an argument. The following works, however (Postgresql in my case):
my $dbh = DBI->connect("DBI:Pg:dbname=$database",$user,$password );
I found this bit, straight from Tim Bunce (June 97, DBI-user mail list) which shows the difference between the two methods:
Old-style: DBI->connect('dbname', $user, $pass, 'Driver'); New-style: DBI->connect('dbi:Driver:dbname', $user, $pass);
  • Comment on Re: DBI->connect using 'old-style' syntax is deprecated and will be an error in future versions
  • Select or Download Code