Now I'm really confused about perlbrew
...
In perlbrew.pm
I see the following:
if ($shell =~ /\/zsh\d?$/) {
$shell_opt = "-d -f";
# <snip>
}
elsif ($shell =~ /\/bash$/) {
$shell_opt = "--noprofile --norc";
}
AFAICT, those settings for $shell_opt
mean that, at least if invoked from zsh
or bash
, perlbrew use ...
will exec
a new shell, suppressing the sourcing of all of the user's rc-type files.
I really have a hard time envisioning why anyone would want to work in a bare shell. What am I missing here? Is perlbrew
meant for a use pattern different from standard interaction via a shell? Or is it simply not intended for users of zsh
or bash
?
EDIT: Just to clarify, in order for me to use one of the perl
s installed by perlbrew
I'd have to run something like
% perlbrew use perl-5.16.3
When one does so, the code shown above gets run, and as a result perlbrew
exec
's a new shell, with no rc-files. I don't see the point of working in an instance of my shell without my usual rc-files.
perlbrew
inbash
. All I had to do was add a source line to my.bashrc
file. I don't follow your questions. What is going wrong with your installation? – Laconia