开发者

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'

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜