如何在Strawberry Perl中更改@INC? [英] How to change @INC in Strawberry Perl?

查看:115
本文介绍了如何在Strawberry Perl中更改@INC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Strawberry Perl中永久更改@INC而又不更改脚本?

How can I change @INC permanently, without changing my scripts, in Strawberry Perl?

我知道-I,但是不想每次都调用该开关.

I'm aware of -I, but don't want to invoke that switch every time.

推荐答案

要添加路径,请将环境变量PERL5LIB设置为这些路径.

To prepend paths, set environment variable PERL5LIB to those paths.

注意:这将影响生效时运行的Perl的所有安装.

Note: This will affect all installations of Perl you run when this is effect.

方法:右键单击(我的)计算机",属性",高级",环境变量",(顶部)新建".您可能必须重新启动已经运行的控制台才能进行更改.

Howto: Right-click (My) Computer, Properties, Advanced, Environment Variables, (the top) New. You will probably have to restart already running consoles to get the change.

这篇关于如何在Strawberry Perl中更改@INC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆