我在Cygwin上使用Perl 5.14.2和Unicode::Collate::Locale
来排序一些法语文本
use Unicode::Collate::Locale;
my $coll = Unicode::Collate::Locale->new(locale => "fr");
@french_text = $coll->sort(@french_text);
我得到的错误是:
Unicode/Collate/Locale/fr.pl can't be found at ./program.pl line 16
正在从以下文件生成此错误消息:
/usr/lib/perl5/5.14/i686-cygwin-threads-64int/Unicode/Collate/Locale.pm
存在以下文件:
/usr/lib/perl5/5.14/Unicode/Collate/Locale/fr.pl
但经过调查,我发现Locale.pm正在寻找:
/usr/lib/perl5/5.14/i686-cygwin-threads-64int/Unicode/Collate/Locale/fr.pl
此文件不存在,因此我收到错误消息。有人看到这个问题吗?这是一个错误吗?
答案 0 :(得分:0)
您应该检查Unicode::Collate::Locale
是否安装正确 -
使用命令instmodsh
检查已安装的模块。
MPBAB:work macpro$ instmodsh
Available commands are:
l - List all installed modules
m <module> - Select a module
q - Quit the program
cmd? m Unicode::Collate::Locale
Available commands are:
f [all|prog|doc] - List installed files of a given type
d [all|prog|doc] - List the directories used by a module
v - Validate the .packlist - check for missing files
t <tarfile> - Create a tar archive of the module
h - Display module help
q - Quit the module
WWW::Mechanize cmd? f