warning message: DBI->connect using 'old-style' syntax is depreca ted and will be an error in future versions at blib/lib/invlib.pm line 20

John Chambers <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
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/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.