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.
In reply to Locating modules in directories by kdjantzen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |