[Purdue-pm] Module Question

Dave Jacoby jacoby at purdue.edu
Wed Jul 20 10:58:29 PDT 2011

On 7/20/2011 1:54 PM, Doug Yatcilla wrote:
> If there are only two systems and you keep your perl libraries in
> different directories on each system, you could put two "use lib"
> lines in your code listing both directories.

Rick suggested this, and this is what I'm going with now.

> Or, you could set the PERL5LIB shell environment variable to be the
> directory with your perl libraries.  If you use this, you won't need
> the "use lib" line in your code.  You login scripts could
> automatically set the PERL5LIB env var to the appropriate directory
> for the server or you could set it to all possible directories so the
> same PERL5LIB will work on any server you use.

This is what programmers.stackexchange.com suggested, and I was starting 
to poke at it before Rick spoke to me.

Dave Jacoby                         Address: WSLR S049
Code Maker                          Mail:    jacoby at purdue.edu
Purdue University                   Phone:   765.49.67368
    992 days until the end of XP support

More information about the Purdue-pm mailing list