On Wed, Jan 07, 2009 at 03:30:59PM +0000, Adam Witney wrote: > On 7 Jan 2009, at 15:24, Vic Norton wrote: > >I plan to use CPANPLUS to install new packages and modules. Right > >now it installs them in > > /opt/local/lib/perl5/site_perl/5.8.8 > >This seems like a good place, but how can I add this directory to > >@INC? I would prefer not having to start every script with > > use lib '/opt/local/lib/perl5/site_perl/5.8.8'; > Try adding this to your ~/.profile > export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
Or PERL5LIB=/opt/blahblah:$PERL5LIB, cos you want your own installs to come first, just like you normally put your own private binaries directory at the front of your $PATH. -- David Cantrell | Cake Smuggler Extraordinaire You know you're getting old when you fancy the teenager's parent and ignore the teenager -- Paul M in uknot