列出所有已安裝的模組

從命令列:

cpan -l

從 Perl 指令碼:

use ExtUtils::Installed;
my $inst = ExtUtils::Installed->new();
my @modules = $inst->modules();