Hi,

I am somewhat new to Perl, and am trying to use it to access a MySQL 
database. I installed the DBI and DBM packages, the seem to be where they 
should be, but when I execute the script I get a not found message.  
Are there additioinal environment variables that need to be set?  

Here is the message:

Can't locate DBI.pm in @INC (@INC contains: E:/langs/ActivePerl/Perl/lib
E:/langs/ActivePerl/Perl/site/lib .) at G:\Dev\Perl
Scripts\dump_members.pl line 4. BEGIN failed--compilation aborted at
G:\Dev\Perl Scripts\dump_members.pl line 4.

The script contains the following:


use strict;
use DBI;

my $dsn= "DBI::mysql:sampdb:localhost";
my $user_name = "sampadm";
my $password  = "secret";

etc...etc

The OS is Windows XP, if that means anything.

Hope someone can offer a clue as to what's happening.

Thanks,

Alan









__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to