[sf-perl] /usr/local/foo/ for cpan and locally grown modules

Joe Brenner doom at kzsu.stanford.edu
Thu Jan 25 01:23:02 PST 2007


David Alban <extasia at extasia.org> wrote:

> Then today I installed Crypt::PasswdMD5 from cpan.  I ran "perl
> Makefile.PL".  I then edited the resulting make file so that it would
> install in /usr/local/foo rather than the default location.  So now I
> have a program that does:
> 
>   use lib "/usr/local/foo/lib/perl";
>   use My::Module;
> 
>   use lib "/usr/local/reg/lib/perl5/site_perl/5.8.0";
>   use Crypt::PasswdMD5;

Do you know about the PERL5LIB environment variable?  If you put 
a few of your commonly used /usr/local paths in your PERL5LIB, you can
stop adding them to all to your scripts with "use lib".



More information about the SanFrancisco-pm mailing list