in reply to Version-independent installation directories

I've found on my boxes that the search path @INC also includes /usr/local/lib/site_perl, which is where I tend to put my customize perlmodules, etc.

Perhaps this is just a Debian thing, but it seems to work for all the various perl versions between stable/unstable. If it's the same on your machine though, you could probably put your modules there regardless of Perl version.

Replies are listed 'Best First'.
Re: PERL search path
by moot (Chaplain) on Apr 13, 2005 at 16:10 UTC
    $ perl -V Summary of my perl5 (revision 5.0 version 8 subversion 3) configuratio +n: Platform: osname=linux, osvers=2.6.4, archname=i586-linux-thread-multi uname='linux g194 2.6.4 #1 smp fri jan 14 13:01:26 utc 2005 i686 i +686 i386 gnulinux ' <snip> Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL +_IMPLICIT_CONTEXT Built under linux Compiled at Feb 5 2005 12:25:37 %ENV: @INC: /usr/lib/perl5/5.8.3/i586-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl $ cat /proc/version Linux version 2.6.4-52-default (geeko@buildhost) (gcc version 3.3.3 (S +uSE Linux)) #1 Wed Apr 7 02:08:30 UTC 2004