mkdir -p $HOME/lib/perl5 # otherwise CPAN will install to "$HOME/lib/site_perl" etc.
_perlpatt="$(perl -MConfig -e 'print "{,/".$Config{$_}."}" for qw(version archname);')"
for _perldir in $(eval "echo {/usr,$HOME}{/lib{,64}/perl{,5},/share/perl}{,/site_perl}$_perlpatt");do
- _bash_profile_addpath -f PERLLIB "$_perldir"
+ # $PERL5LIB overrides $PERLLIB and it is being used by: /etc/profile.d/atrpms.*
+ _bash_profile_addpath -f PERL5LIB "$_perldir"
done
unset _perldir
set +H
shopt -s mailwarn
unset OPTIND
+umask 022
if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi