Dear all 
Please see the below code, i am in course of studying Configuration in perl, 
when i came across writing a small code, a error message was:
 
Can't locate Config/IniFiles.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site
/lib .) at cok.pl line 2.
BEGIN failed--compilation aborted at cok.pl line 2.
 
 
But my other programs works fine. The above module is found at local ie., 
C:/Perl/lib/Config.pm 
 
 #cok.pl #
use Config::IniFiles;
my $file= "Setup1.ini";
my $ini=Config::IniFiles->new(-file=>$file)or die "could not open 
$file!";           
my $email=$ini->val('Network', 'email');
print "check $email\n";

 
Setup1.ini
[Network]
[EMAIL PROTECTED]
 
[Book]
title=good
publish=sam 
author=tom

Can i get some explanation what is the error behind this.
 
Regards
Mani

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

Reply via email to