cvs commit: perlfaq perlfaq8.pod
[email protected] (Robert Spier) 12 Aug 2003 02:45:33 -0000
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
cvsuser 03/08/11 19:45:33 Modified: . perlfaq8.pod Log: Change 20573 by jhi@kosh on 2003/08/09 07:09:07 Subject: Re: [PATCH] perlfaq8.pod and MakeMaker's PREFIX= From: Michael G Schwern <[email protected]> Date: Fri, 8 Aug 2003 13:59:50 -0700 Message-ID: <[email protected]> Revision Changes Path 1.18 +5 -5 perlfaq/perlfaq8.pod Index: perlfaq8.pod =================================================================== RCS file: /cvs/public/perlfaq/perlfaq8.pod,v retrieving revision 1.17 retrieving revision 1.18 diff -u -w -r1.17 -r1.18 --- perlfaq8.pod 26 Jan 2003 17:44:04 -0000 1.17 +++ perlfaq8.pod 12 Aug 2003 02:45:33 -0000 1.18 @@ -1,6 +1,6 @@ =head1 NAME -perlfaq8 - System Interaction ($Revision: 1.17 $, $Date: 2003/01/26 17:44:04 $) +perlfaq8 - System Interaction ($Revision: 1.18 $, $Date: 2003/08/12 02:45:33 $) =head1 DESCRIPTION @@ -1138,20 +1138,20 @@ =head2 How do I keep my own module/library directory? -When you build modules, use the PREFIX option when generating +When you build modules, use the PREFIX and LIB options when generating Makefiles: - perl Makefile.PL PREFIX=/u/mydir/perl + 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 L<perlrun>) or say - use lib '/u/mydir/perl'; + use lib '/mydir/perl/lib'; This is almost the same as BEGIN { - unshift(@INC, '/u/mydir/perl'); + unshift(@INC, '/mydir/perl/lib'); } except that the lib module checks for machine-dependent subdirectories.