use strict; use CPANPLUS::Backend; my $cpan = CPANPLUS::Backend->new(); foreach my $module ($cpan->installed()) { print $module->name(), "\n"; }