warning message: DBI->connect using 'old-style' syntax is depreca

A few weeks ago, I upgraded an old Debian system to Sarge, and I started
receiving these error messages:
DBI->connect using 'old-style' syntax is deprecated and will be an error in
future versions at blib/lib/invlib.pm line 20
in my apache logs.

Now, I'm building a newer system from scratch, and when I make test my local
modules, I'm getting that message.

The scripts still work, but I prefer no warnings

What is the new syntax? Here is my call:
(my $dbh = DBI->connect( 'sheet', 'jc', 'secret', 'mysql' ) ) or die
"Cannot do \$dbh->connect: $DBI::errstr\n";

Thanks,
John Chambers

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules [at] m .gmane.org
John Chambers [ Fr, 06 Januar 2006 15:38 ] [ ID #1130323 ]
Datenbanken » gmane.comp.db.mysql.perl » warning message: DBI->connect using 'old-style' syntax is depreca

Vorheriges Thema: AW: <<Spam-Verdacht>> warning message: DBI->connect using 'old-style' syntax is depre
Nächstes Thema: $sth->{'NAME'} and $dbh->column_info() broken in DBD-mysql-3.x ?