in reply to @INC not set for perlbrew

Try installing cpanm into your perlbrew bin

perlbrew install-cpanm

Your path (echo $PATH) should have $HOME/perl5/perlbrew/bin fairly near the front!

then when you install w cpanm it should load into the correct perlbrew selected version.

Replies are listed 'Best First'.
Re^2: @INC not set for perlbrew
by Alessandro (Acolyte) on Jul 25, 2016 at 20:59 UTC
    Thanks... It seems for now I found a work around by adding  eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib) in my /.zshenv

      I'm not familiar with the zsh shell, but I'm pretty sure that shouldn't be necessary.

      How did you install perlbrew? Did you follow the basic steps on the perlbrew website?

      Were you logged in as the same user you're trying to install modules under? As FryingFinn stated, installing a perlbrew specific cpanm should be all you need after a typical install.