Hi all, I have a problem interfacing Mysql with perl. I used red Hat linux 7.0 as the OS and it comes with perl built in (perl-5.6.0-9). I installed MySQL server and client downloaded from its web site (www.mysql.org), the versions are: MySQL-3.23.44-1 and MySQL-client-3.23.43-1. I also installed modules that I think will be required for interfacing mysql and perl ie. the DBI and DBD. They are: Mysql-DBI-perl-bin-1.1825-1 and DBI-perl-bin-0.93-1 Independently I can verify that Mysql and perl works. I can create tables and run quiries on Mysql, and I can run perl scripts successfully. However when I try the following simple perl script: #!/usr/bin/perl use DBI; @driver_names= DBI->available_drivers(); print "the drivers are : @driver_names";
I get the following error: 'Can't locate object method "available_drivers" via package "DBI" at ./test line 3' When I run a script with @dbh=DBI->connect(.....) I also get smilar error of 'Can't locate object method "connect" via package "DBI"....' Do I miss something ? Have I installed DBI correctly ? How do I test the DBI ? Please help... __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]