in reply to Showing all installed modules

How about this one:

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

We'll see how long it takes to get golfed. :-)

Replies are listed 'Best First'.
Re^2: Showing all installed modules
by Limbic~Region (Chancellor) on Jun 23, 2005 at 21:17 UTC
    revdiablo,
    use ExtUtils::Installed; print "$_\n" for ExtUtils::Installed->new()->modules;

    Cheers - L~R