kdjantzen has asked for the wisdom of the Perl Monks concerning the following question:
Going throught "perldoc lib" I found the following "cryptic" sentence:
<doc>
For each directory in LIST (called $dir here) the lib module also checks to see if a directory called
$dir/$archname/auto exists. If so the $dir/$archname directory is assumed to be a corresponding
architecture specific directory and is added to @INC in front of $dir.
<\doc>
The error message shows that the two directories are included in the correct sequence. XXX.pm is definitively a module contained in the directory MyModules.
<msg>
Can't locate XXX.pm in @INC (@INC contains: /home/.../MyTest /home/.../MyModules
/usr/lib/perl5/5.8.6/i586-linux-thread-multi /usr/lib/perl5/5.8.6
/usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.6/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl .)
at /home/.../yyyy line 31.
<\msg>
What do I have to do so that the modules are found wherever they are?
Is there some documentation about building libraries?
Thanks for any help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Locating modules in directories
by shmem (Chancellor) on Apr 21, 2007 at 12:15 UTC | |
by kdjantzen (Acolyte) on Apr 21, 2007 at 15:45 UTC | |
|
Re: Locating modules in directories
by chromatic (Archbishop) on Apr 21, 2007 at 23:54 UTC | |
|
Re: Locating modules in directories
by betterworld (Curate) on Apr 21, 2007 at 14:05 UTC |