in reply to Re: Basic - Perl5lib
in thread Basic - Perl5lib

I am worried about how the PERL5 LIB env variable affects different perl installations. I am presuming they share the same one. However I want to be sure that if I set the PERL5LIB for my local installation that it won't mess up the system installation. I want to include certain module versions for use by my local installation and I know if i set PERL5LIB it is prepended to the @INC array. Presumably this will affect my system installation too. I don't know if I can avoid this or whether it means I shouldn't use the PERL5LIB variable and I should use 'use lib' to modify the INC array.

Replies are listed 'Best First'.
Re^3: Basic - Perl5lib
by Anonymous Monk on Oct 28, 2010 at 12:36 UTC
    PERL5LIB affects perl processes (every perl process will use PERL5LIB), it doesn't affect installations