I use perlbrew
to manage my Perl environment.
When I installed perlbrew
the first time as per the documentation, it installed everything to ~/perl5/perlbrew
, which I now find undesirable.
The documentation states:
The directory ~/perl5/perlbrew will contain all install perl executables, libraries, documentations, lib, site_libs. In the documentation, that directory is referred as "perlbrew root". If you need to set it to somewhere else because, say, your HOME has limited quota, you can do that by setting PERLBREW_ROOT environment variable before running the installer:
export PERLBREW_ROOT=/opt/perl5/perlbrew curl -kL http://install.perlbrew.pl | bash
Question: How can I move PERLBREW_ROOT
directory to be /opt/perl5/perlbrew
instead of ~/perl5/perlbrew
?