I have Active State Perl 5.6. I've used PPM install DBI. I'm using this code:




#
# Perl script that talks with the Northwinds database using an
# ODBC DSN of Northwind.
#

use DBI;
use Data::Dumper;

my $dbh = DBI->connect( "dbi:ODBC:Northwind", "Admin", "",
{RaiseError => 1, PrintError => 1, AutoCommit => 1} ) or
die "Unable to connect: " . $DBI::errstr . "\n";

# OK, connected, now select from Customers table.



I get this error: Can't locate object method "p" via package "DBI::db" (perhaps you forgot to load "DBI::DB"?) at test.pl line 21.

Any help??

Thanks in advance!
Jackie

Reply via email to