开发者

What's the environment variable that Perl looks up for %INC?

开发者 https://www.devze.com 2023-03-24 15:34 出处:网络
I need to modify that variable to include more directories, anyone knows开发者_开发问答 the name?perlrun does in its list of ENVIRONMENT variables.

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'

0

精彩评论

暂无评论...
验证码 换一张
取 消