Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Why is lib/perl5 not added to INC for perls installed using perlbrewby kcott (Archbishop) |
on Sep 11, 2020 at 13:39 UTC ( [id://11121614]=note: print w/replies, xml ) | Need Help?? |
G'day areldy_exten, Welcome to the Monastery. I also have Perl 5.32.0 installed using Perlbrew. From the description of your setup, mine seems to be identical; of course, mine may differ from yours in areas that you haven't mentioned.
"Why isn't this included automatically in the @INC?" Short answer: because it doesn't exist. Longer answer. I've been using Perlbrew for a very long time, certainly more than a decade, and I don't recall $PERLBREW_ROOT/perls/<install-name>/lib/perl5 ever being a standard Perlbrew directory. This would be why such a path would not be automatically added to @INC. I'm not a user of cpanm, I use cpan. As such, I'm not in any position to comment on your use of cpanm beyond suggesting that you check that you are using it correctly. I know cpanm is widely used: if you have questions about that, you can definitely get help about it here. If you have modules installed in non-standard locations, consider using PERL5LIB (see "perlrun: ENVIRONMENT") or use the lib pragma. There are other ways of dealing with this but that's probably jumping the gun and heading off-topic for the current issue. Minor in-joke for anyone who recalls "Re^4: [OT] 'perl' is not the 'perl' reported by 'which perl'": yes, I did remember type but thought which was more appropriate here. However, just for completeness:
— Ken
In Section
Seekers of Perl Wisdom
|
|