plenv use "$PERL_VERSION"
plenv lib create "$LIB_NAME"
plenv use $PERL_VERSION@$LIB_NAME
this should set $PERL5LIB
but for some reason it does not:
echo $PERL5LIB #=>
it does however install modules where expected with cpanm
that are only visible when the lib is in use.
also you must have local::lib
installed for the lib stuff to work.
actually it does. you just need to exit the shell first:
echo $PERL5LIB #=> $HOME/.plenv/libs/$PERL_VERSION@$LIB_NAME/lib/perl5
get this to work with cpm