Can't locate perl module in @inc even though error message says its in @inc -


i'm trying execute perl script , i've gotten work before when run in folder it's located in... ie, following works.

\higherfolder\folder>updatetestcasesscript.pl test.feature test_cases.xls 

buuuuut when try run script on command line outside of folder

\higherfolder>folder\updatetestcasesscript.pl realfile.feature folder\test_cases.xls 

i weird error:

can't locate spreadsheet/parseexcel.pm in @inc <@inc contains: spreadsheet/parse excel.pl c:/strawberry/perl/site/lib c:/strawberry/perl/vendor/lib c:/strawberry /perl/lib .> @ c:...\higherfolder\folder\updatetestcasesscript.pl line 4 

but if @ first few lines of script... following:

#!/usr/bin/perl -w  use lib 'spreadsheet/parseexcel.pm'; use spreadsheet::parseexcel; 

so have idea may looking @ wrong @inc somehow, have idea how fix it??

thanks!!!

. in @inc, making perl in current work directory modules. stopped working when changed cwd because nothing else in @inc allowed find module.

to modules in relative directory in script located:

use findbin qw( $realbin ); use lib $realbin; 

by way, use lib 'spreadsheet/parseexcel.pm'; makes no sense whatsoever. argument should directory in spreadsheet/parseexcel.pm located (more or less).


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -