osunderdog has asked for the wisdom of the Perl Monks concerning the following question:

I've been looking through Super Search this morning for some information on this, but haven't found anything definitive, so I thought I would just ask.

The docs in perldoc perlrun describe two environment variables PERL5LIB and PERLLIB.

As far as I can tell from the documentation, the key difference between the two environment variables is that if PERL5LIB is set it overrides PERLLIB. However, the PERL5LIB definition also mentions:

Any architecture-specific directories under the specified locations ar +e automatically included if they exist.

Based on this, I have a few questions:

Any clarification would be appreciated.


Plaques don't hang well on cube walls

Replies are listed 'Best First'.
Re: Motivation behind PERL5LIB and PERLLIB?
by salva (Canon) on Apr 18, 2005 at 15:20 UTC
    If I remember correctly, PERLLIB was used on perl4 and when perl5 went out, support for PERL5LIB was added so the user could define different lib paths for both perl4 and perl5 from the same shell/session.

    PERLLIB is obsolete, use PERL5LIB