First, some background.
perlbrew
is a tool to assist with the installation of Perl into a non-standard directory (usually under your home directory).
It also helps you control which Perl installation is used when executing perl
in an interactive shell. Switching between installations is done using perlbrew use
and perlbrew switch
. perlbrew use
only affects the current shell, while perlbrew switch
is more permanent.
$ perl -V:version | $ perl -V:version
version='5.20.0'; | version='5.20.0';
|
$ perlbrew use 5.18.2t | $ perlbrew switch 5.18.2t
|
$ perl -V:version | $ perl -V:version
version='5.18.2'; | version='5.18.2';
|
$ bash -ic 'perl -V:version' | $ bash -ic 'perl -V:version'
version='5.20.0'; | version='5.18.2';
perlbrew off
is used to revert to using the system Perl, but it's temporary like perlbrew use
. Is there a way to revert to the system Perl with the permanency of perlbrew switch
?
You can use the following command
perlbrew switch-off