找不到Perl模块

找不到Perl模块,perl,Perl,当我尝试将perl模块导入脚本时,它说找不到perl模块 #!/usr/bin/env perl use lib 'mnt/hgfs/scripting/perl/perlib/Array'; use Shell; #define all global variables here use List::MoreUtils 'first_index'; use List::MoreUtils 'last_index'; use Getopt::Long; use vars qw(%ve

当我尝试将perl模块导入脚本时,它说找不到perl模块

#!/usr/bin/env perl

use lib 'mnt/hgfs/scripting/perl/perlib/Array';

use Shell;

#define all global variables here

use List::MoreUtils 'first_index';
use List::MoreUtils 'last_index';

use Getopt::Long;

use vars qw(%vectorList); 

use Array::Compare;
我得到以下错误-

Can't locate Array/Compare.pm in @INC (@INC contains:           mnt/hgfs/scripting/perl/perlib/Array /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at wellbiasing.pl line 12.
BEGIN failed--compilation aborted at wellbiasing.pl line 12.
虽然我已经在perlib目录中安装了数组模块,但它表示找不到该模块。Array是perlib目录中的一个目录,我创建该目录是为了将所有模块放在数组目录中,其中有Compare.pm。但为什么我无法运行它?

更改:

use lib 'mnt/hgfs/scripting/perl/perlib/Array'; 
致:


Array
目录不应该是Perl模块搜索路径的一部分。

为了进一步澄清,通过像OP那样编写它,Perl正试图找到
mnt/hgfs/scripting/Perl/perlib/Array/Array/Compare.pm
,按照toolic的方式正确查找
mnt/hgfs/scripting/Perl/perlib/Array/Compare.pm
use lib 'mnt/hgfs/scripting/perl/perlib';