2

Unicode::Collate::Locale在 Cygwin 上使用 Perl 5.14.2 对一些法语文本进行排序

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

该文件不存在,因此我收到错误消息。其他人看到这个问题吗?这是一个错误吗?

4

1 回答 1

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
于 2012-08-09T01:07:58.400 回答