http://qs321.pair.com?node_id=1187671


in reply to Re^2: NOT NEW but confused - set cpan paths from the start
in thread NOT NEW but confused - set cpan paths from the start

Why use perlbrew when you can use cpan/cpanm/cpanp directly?

Because the default perl usually comes with the system (at least on Unix systems). And quite often, the system depends on that perl version and configuration. Slackware is a rare exception: It comes with a quite recent perl version, but it does not depend on Perl. For other Linux distributions and other Unix systems, you better use the package manager (rpm, apt, whatever - RTFM) to install perl modules from system packages instead of installing from CPAN. If you want to use the latest versions of some perl module, better install an independent perl, e.g. using perlbrew or by compiling perl manually. This way, modules "too new" for the system won't interfere with the system perl.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re^3: NOT NEW but confused - set cpan paths from the start

Replies are listed 'Best First'.
Re^4: NOT NEW but confused - set cpan paths from the start
by Anonymous Monk on Apr 11, 2017 at 20:49 UTC
    I guess thats better than Yes, use Perlbrew! even though it assumes an XY question