What's the environment variable that Perl looks up for %INC?
I need to modify that variable to include more directories,
anyone knows开发者_开发问答 the name?
perlrun does in its list of ENVIRONMENT
variables.
Chances are you're looking for PERL5LIB
, even though there's a couple of other ways to achieve the same, some of which are mentioned in the above document as well.
I believe you mean @INC
, not %INC
, and the variable is PERL5LIB
.
That's not necessarily the best way to add more directories to your path lookup. You can push()
new variables onto @INC and you can use lib 'whatever'
精彩评论