Help for a DBI newbie

Mike Burbey <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
I am trying to connect to a mysql server running on the same PC that I
am running this script from.

use strict;
use DBI;

my $dbh = DBI->("DBD:mysql:database=FLS;host=localhost", "burbey",
"civic1", {'RaiseError' => 1});
-------------------------------------------------------------------
This is the error I receive when trying to run this 1 line of code:
Undefined subroutine &main::DBI called at testdb.pl line 4.

Using CPAN this shows both the DBI and DBD:mysql modules are installed:
cpan> install DBI
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Fri, 09 Dec 2005 10:08:29 GMT
DBI is up to date.
cpan> install DBD::mysql
DBD::mysql is up to date.




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