On 1/11/11 at 18:45, shawnhco...@gmail.com (Shawn H Corey) wrote:

I think perlbrew can be used to switch between installed Perls. If so, switch to the one you want and run `cpan`. This will cause cpan to use the active perl and install the modules in its @INC directories.

I use perlbrew to install a personal copy of Perl, perl-5.14.2 to be exact, but every time I upgrade perl, I have to re-install all the modules. So I know that cpan uses the active perl.

http://www.perlbrew.pl/

Hi, Shawn.

From the Googling I did concerning this, I came across perlbrew & bootstrapping using local::lib but wondered if there was a simpler solution.

What’s your opinion on hard-pathing to CPAN a la `$ /usr/local/bin/perl -MCPAN -e shell’ in order to use the CPAN that’s installed there to install modules in /usr/local/ so that I can use them with the perl-5.14.2 that resides there? If it’s feasible, one quick alias & it’d be easy.

Cheers,

    Phil.
--
Please consider the environment before reading this email...


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to