在一个特定的系统,我运行一个perl脚本,它说不是List :: Util标准Perl分发的一部分吗?
Can't locate List/Util.pm in @INC (@INC contains: <Some-Path>/ActiveState/perl/lib <Some-Path>/ActiveState/perl/site/lib .) at <Some-Other-Path>\searchCobolPgms.ps line 7.
没有现在奇怪的部分是,部署代码到失败的系统之前,我跑在我的笔记本电脑,它运行良好。这两个系统的区别在于,在我的笔记本电脑中,我使用的是Cygwin,并且perl与它捆绑在一起,并且所述失败的系统具有ActiveState perl。
<Some-Path>perl -v
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 635 provided by ActiveState Corp. http://www.ActiveState.com
Built 15:34:21 Feb 4 2003
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
我接着又搜寻的Util的cygwin的lib下,它在为i686-cygwin的
c:\cygwin\lib\perl5\5.10>find . -name Util.pm
./CGI/Util.pm
./i686-cygwin/Hash/Util.pm
./i686-cygwin/List/Util.pm
./i686-cygwin/Scalar/Util.pm
所以现在我很困惑出席了会议。 Isn; t List :: Util是标准perl发行版的一部分吗? 对我的困惑
- 名单的原因/ Util.pm正在为i686-cygwin的
- ActiveSync安装中没有列出本/ Util.pm
我怀疑你使用的古代版本的Perl不包括它。它并不总是核心库的一部分。 – 2012-01-01 18:19:39
@BrianRoach,是的,你的猜测是正确的。那就是问题所在。 – Abhijit 2012-01-01 18:36:22
Perl 5.6.1已超过十年。请更新为更新的内容。我建议草莓Perl - http://strawberryperl.com/ – 2012-01-03 10:07:52