I use perlbrew to easy switch between perl.
I use Carton to install modules only for current project into /local directory.
But when I deploy application on new host.
I do:
perlbrew install -v -j 8 --notest --switch perl-5.30.3
perlbrew install-cpanm
cpanm Carton
But last step will install Carton into perlbrew libs
Is there a way to install Carton into my project local/lib/perl5 directory?
I want to keep base perlbrew clean
To install modules into your own directory we can use
--local-liboption.It is mentioned here and described at examples
cpanm --helpprobably useful options for this task are:
If you do deploy often probably you do not need to retest each time. This is meaningless.
Second option is useful when you want modules to be installed into you local directory despite on they are already installed into system/brew perl