Apache::DBI and DBI are different packages - Apache::DBI requires DBI to
function.
thus, you still need to include the use DBI pragma.
HTH
--Geoff
> -----Original Message-----
> From: Michael Baxter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 06, 2000 4:17 AM
> To: [EMAIL PROTECTED]
> Subject: problem with Apache::DBI
>
>
> I've posted this to comp.lang.perl.modules but got no
> response. Perhaps
> you can help.
>
> I've been accessing a mysql db with (non-mod)perl/cgi. I've installed
> mod_perl as per the eagle book (right down to the suggested directory
> layout) and have run examples 2.1 and 2.3, so I'm
> assuming Apache::Registry works. But when I try to run one of my old
> scripts (with the use DBI commented out) all I get is an error msg:
>
> [Sun Jan 2 16:29:41 2000] [error] [Sun Jan 2 16:29:41 2000] null:
> Can't locate object method "connect" via package "Apache::DBI" at
> /usr/lib/perl5/site_perl/DBI.pm line 382. The file is there.
>
> I'm running redhat 5.2, mysql 2.22.26a, apache 1.3.9 and
> mod_perl 1.21.
>
> Any suggestions - I've run out of ideas and curses.
> Thanks,
> MickB.
>