"be consistent" | |
PerlMonks |
PERL5LIB mysteryby jalucas (Novice) |
on Mar 04, 2009 at 16:54 UTC ( [id://748236]=perlquestion: print w/replies, xml ) | Need Help?? |
jalucas has asked for the wisdom of the Perl Monks concerning the following question: Hello, I am having a problem using PERL5LIB. I have a directory 'H:/tools/perl_libs/' that is mapped to a Windows remote drive. My PERL5LIB environment variable is set as: PERL5LIB="H:/tools/perl_libs C:/Perl_5_8_8_822/lib C:/Perl_5_8_8_822/site/lib" The following code fails. I expect it to find <H:/tools/perl_libs/Memory.pm> as defined in PERL5LIB, but it does not. The code and the error message are provided below: CodeOutput The following code works just fine. Memory.pm is found. For whatever reason, defining my directory with use lib ... works but defining in PERL5LIB doesn't seem to. The use Does::Not::Exist; is used to cause a failure and dump the @INC array. Note that <H:/tools/perl_libs> appears as the first two entries in @INC. CodeOutput Does anyone know why the use lib ... would work but PERL5LIB wouldn't? Thanks.
Back to
Seekers of Perl Wisdom
|
|