转自:http://blog.sina.com.cn/s/blog_4af3f0d20100faph.html

 

方法一:
perl -M  模块名 -e ''   如果没反应,表示有
方法二:使用perldoc相应文档,例如CGI.pl是随perl发布的一个模块
$  perldoc CGI


方法三:利用命令

#!/usr/bin/perl
use strict;
use ExtUtils::Installed;
my $inst= ExtUtils::Installed->new();
my @modules = $inst->modules();
foreach(@modules)
{
        my $ver = $inst->version($_) || "???";
        printf("%-12s --  %s/n", $_, $ver);   
}
exit ;

相关文章: