- 设置perl module 的目录(in Windows)
print join("\n",@INC),"\n"
C:/Strawberry/perl/site/lib
C:/Strawberry/perl/vendor/lib
C:/Strawberry/perl/lib
2.设置perl module 的目录(in Linux)
print join("\n",@INC),"\n"
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.26.1
/usr/local/share/perl/5.26.1
/usr/lib/x86_64-linux-gnu/perl5/5.26
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.26
/usr/share/perl/5.26
/usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base
或者自己设置lib目录
PERL5LIB=$PERL5LIB:/my/perl/modules #目录自己设置
网友评论