in reply to @INC array and two perl versions

Why are /opt/zmanda/amanda/perl/lib/5.8.8 and /opt/zmanda/amanda/perl/lib/site_perl/5.8.8 even in @INC? You must have added them (manually) in some way. Note that they appear twice in the @INC for perl 5.8.8.

I am guessing somebody added them to the environment variable PERL5LIB, or something equivalent (for example: direct use of use lib). Don't do that: when lib adds a directory to @INC, it'll also add version dependent subdirectories. That goes for the contents of PERL5LIB, too.

That's most likely why they appear twice for 5.8.8.

Replies are listed 'Best First'.
Re^2: @INC array and two perl versions
by nikunjv (Initiate) on Feb 04, 2010 at 13:52 UTC
    Awesome! Works now!
    However, PERL5LIB was not set in my environment.But when I run 8.pl(which has #!/opt/zmanda.... /perl shebang) PERL5LIB starts having those two paths. How did that happen? The 5.8.8 perl was compiled that way? Update Opps I forgot to mention what fixed it. Just before calling 10.pl, I unset PERL5LIB env variable.