jayto has asked for the wisdom of the Perl Monks concerning the following question:
So I have a folder called patchManagement. In that folder I have a lib folder. I want to run a perl file from the patchManagement folder that uses the modules in the lib folder, I tried using use lib '/lib' and use lib '$FindBin::Bin/lib' I am obviously doing this wrong, how should I be doing it?
Here are my errors incase they help.
Can't locate ID/PatchAssembly/ICSCERT.pm in @INC (@INC contains: /usr/ +local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /us +r/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at test. +pl line 4. BEGIN failed--compilation aborted at test.pl line 4.
the ID folder is inside the lib folder
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Set include path
by moritz (Cardinal) on Aug 06, 2012 at 13:42 UTC | |
| |
|
Re: Set include path
by MidLifeXis (Monsignor) on Aug 06, 2012 at 13:35 UTC | |
by jayto (Acolyte) on Aug 06, 2012 at 13:41 UTC | |
by MidLifeXis (Monsignor) on Aug 06, 2012 at 13:52 UTC | |
by blue_cowdawg (Monsignor) on Aug 06, 2012 at 15:59 UTC | |
|
Re: Set include path
by Anonymous Monk on Aug 06, 2012 at 20:08 UTC |