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

David Alban extasia at extasia.org
Sat Feb 17 15:50:54 PST 2007

Excellent.  Thank you.

On 2/17/07, Michael Budash <mbudash at sonic.net> wrote:
> Found in /usr/lib/perl5/5.8.5/pod/perlfaq8.pod
>         How do I keep my own module/library directory?
>         When you build modules, use the PREFIX and LIB options when
> generating Makefiles:
>             perl Makefile.PL PREFIX=/mydir/perl LIB=/mydir/perl/lib
>         then either set the PERL5LIB environment variable before you
> run scripts that use the modules/libraries (see
>         perlrun) or say
>             use lib '/mydir/perl/lib';
>         This is almost the same as
>             BEGIN {
>                 unshift(@INC, '/mydir/perl/lib');
>             }
>         except that the lib module checks for machine-dependent
> subdirectories.  See Perl's lib for more information.

Live in a world of your own, but always welcome visitors.

More information about the SanFrancisco-pm mailing list