in reply to Perl modules lister

perl -MFile::Find -le 'for (@INC) { find(sub { print $File::Find::name if /pm$/ }, $_) }'

Update: here's one that cleans up the output to resemble the module names, rather than the .pm filenames:

perl -MFile::Find -le ' for $inc (@INC) { find(sub { return unless /pm$/; ($module = $File::Find::name) =~ s!^$inc/!!; $module =~ s!/!::!g; $module =~ s/.pm$//; print $module }, $inc) }'

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.