tej has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl script which uses some pm files. All the pm files were in same folder. I ran my script on unix promt, and it gives me error like "Cant Locate Tab_calc.pm in @INC (@INC contans blah blah..)"
I gave command at begining like
BEGIN { unshift(@INC, "\path\modules") }And i kept all my pm files in folder "modules"
I again got the same error, with only difference that this time @INC had the defined path.Then I tried
use lib '/path/modules'I am still getting the same error
What should I do?..
Update: Thanks Everybody..your points really added to my Knowledgebase
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl on Unix
by JavaFan (Canon) on Aug 11, 2011 at 09:38 UTC | |
by tej (Scribe) on Aug 11, 2011 at 10:02 UTC | |
|
Re: Perl on Unix
by zentara (Cardinal) on Aug 11, 2011 at 12:08 UTC | |
|
Re: Perl on Unix
by moritz (Cardinal) on Aug 11, 2011 at 09:50 UTC | |
by JavaFan (Canon) on Aug 11, 2011 at 11:01 UTC | |
|
Re: Perl on Unix
by Anonymous Monk on Aug 11, 2011 at 09:32 UTC | |
by tej (Scribe) on Aug 11, 2011 at 09:35 UTC | |
by jethro (Monsignor) on Aug 11, 2011 at 09:45 UTC | |
by JavaFan (Canon) on Aug 11, 2011 at 11:03 UTC | |
|
Re: Perl on Unix
by troy99 (Novice) on Aug 12, 2011 at 10:28 UTC |