in reply to Paths for PERL5LIB, the -I switch and 'use lib'

Zaxo wrote an excellent node to deal with this subject: Personal library with CPAN.

Once you have PERL5LIB set in your environment, you shouldn't need the -I switch or use lib pragmas.

-David

Replies are listed 'Best First'.
Re^2: Paths for PERL5LIB, the -I switch and 'use lib'
by moritz (Cardinal) on Sep 16, 2007 at 08:03 UTC
    This is only true until you use the taint mode - then PERL5LIB will be ignored.
      This was very helpful. For my original question, a rejoinder surely could have been "Why don't you just try it and see how it works out?" I did that - I grabbed a test program that I'd built and started modifying it, playing with it, calling it with different args. But the results I was getting made no sense - the paths I put in PERL5LIB weren't showing up in INC. So eventually I just asked a question.

      Yes, the test program I grabbed used taint.

      wisdom is slowly dawning
      throop

Re^2: Paths for PERL5LIB, the -I switch and 'use lib'
by throop (Chaplain) on Sep 16, 2007 at 14:58 UTC
    Still need use lib pragmas for cgi files, yes?