profile: Perl environment improvements

This commit is contained in:
Andrea Rogers 2025-09-10 16:49:58 -05:00
commit 1600ffb673
2 changed files with 9 additions and 1 deletions

8
.profile.d/perl.bash Normal file
View file

@ -0,0 +1,8 @@
perl_env() { eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib) ; }
perl_env \
|| (
command -v cpanm \
&& cpanm --local-lib=$HOME/perl5 local::lib \
&& perl_env \
)