in reply to Listing all installed modules
It goes like this
$ perl -MExtUtils::Installed -e'my $inst = ExtUtils::Installed->new(); + print $_, $/ for $inst->modules'
To get yours to work change print "$_\n"; to print "$mod\n";
You are wanting to print $mod as apposed to $_
|
|---|