How to change @INC in Strawberry Perl?

旧城冷巷雨未停 提交于 2019-12-05 05:16:13

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

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.

Dibyajyoti

Alternatively you can use :

use lib /my/other/direcotry 

or

push (@INC , /my/other/direcotry)

to change the value of @INC.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!