查看已安装PERL的模块
1、perldoc perllocal
2、推荐pmtools里的pminst命令
http://search.cpan.org/src/MLFISHER/pmtools-1.01/pminst
http://search.cpan.org/src/MLFISHER/pmtools-1.01/pminst
3、编写如下标本
#!/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 ;
http://wiki.perlchina.org/Perl%E6%A8%A1%E5%9D%97%E5%A4%9A%E5%B9%B3%E5%8F%B0%E5%AE%89%E8%A3%85%E6%96%B9%E6%B3%95