
iavian
Novice
Nov 18, 2007, 2:10 PM
Post #1 of 8
(17787 views)
|
how to fix "Can't locate Scalar/Util.pm in @INC" error
|
Can't Post
|
|
Hi, I'm new to this forum. I hope i will get help for the below error. I am getting the below error when i try to use the ParseExcel module in Perl. ============================= Perl version i use: ============================= Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos solaris 5.8 generic sun4u sparc sunw,ultra-5_10 ' ... ... ... Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos solaris 5.8 generic sun4u sparc sunw,ultra-5_10 ' ============================ Installed modules ============================ Perl -- 5.6.1 Spreadsheet::ParseExcel -- 0.32 ============================ my perl script: ============================ #!/usr/local/bin/perl use Spreadsheet::ParseExcel; my $file="test1.xls"; my $excel = Spreadsheet::ParseExcel::Workbook->Parse($file); ===================================== I'm getting below error when I say perl test_parse_excel.pl ===================================== Can't locate Scalar/Util.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/site_perl/5.6.1/Spreadsheet/ParseExcel.pm line 67. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.1/Spreadsheet/ParseExcel.pm line 67. Compilation failed in require at test_parse_excel.pl line 3. BEGIN failed--compilation aborted at test_parse_excel.pl line 3. Any help is appriciated. Regards and thanks in advance.
|