[sf-perl] /usr/local/foo/ for cpan and locally grown modules
Quinn Weaver
quinn at fairpath.com
Thu Jan 25 11:33:13 PST 2007
On Thu, Jan 25, 2007 at 01:23:02AM -0800, Joe Brenner wrote:
> David Alban <extasia at extasia.org> wrote:
> > 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".
Right. And in this case, you'd do
export PERL5LIB=/usr/local/reg/lib/perl5 # bash syntax
... then Perl automatically searches under there for site_perl,
site_perl/5.8.0, and all those other weirdly named subdirs that
Perl uses to install things.
--
Quinn Weaver, independent contractor | President, San Francisco Perl Mongers
http://fairpath.com/quinn/resume/ | http://sf.pm.org/
More information about the SanFrancisco-pm
mailing list