in reply to Basic - Perl5lib

If you have multiple versions of Perl do they share the same PERL5LIB?

Environment variables are inherited from the parent process.

In other words, it doesn't have a default value and you have to set it manually?

It depends on what you mean by default value. You could set it in your login script, for example.

Replies are listed 'Best First'.
Re^2: Basic - Perl5lib
by Anonymous Monk on Oct 27, 2010 at 23:23 UTC
    I don't have a PERL5LIB environment variable?? When i run env command it isn't in the list and I get nothing from this Perl program
    #!/usr/bin/perl print "PERL5LIB: ", $ENV{PERL5LIB}, "\n"; print "done\n";

      So you don't. Is that a question?

      Perhaps you are missing the point of the variable: To specify additional locations to search for modules.