> 
> 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.


>From a quick glance, line 21 would be further down in the script.  Can
you post the rest of the script or ensure the offending line is shown?
I'm guessing that you have a $dbh->p somewhere...

Jeff


Reply via email to