http://qs1969.pair.com?node_id=469513

eastcoastcoder has asked for the wisdom of the Perl Monks concerning the following question:

Is there a command to show all Perl modules installed on a system?

Replies are listed 'Best First'.
Re: Showing all installed modules
by gellyfish (Monsignor) on Jun 23, 2005 at 21:23 UTC

    You should find that on most systems that:

    perldoc perllocal
    will show all the modules other than from the core that are installed.

    /J\

Re: Showing all installed modules
by revdiablo (Prior) on Jun 23, 2005 at 21:12 UTC

    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. :-)

      revdiablo,
      use ExtUtils::Installed; print "$_\n" for ExtUtils::Installed->new()->modules;

      Cheers - L~R

Re: Showing all installed modules
by rev_1318 (Chaplain) on Jun 23, 2005 at 21:26 UTC
Re: Showing all installed modules
by planetscape (Chancellor) on Jun 24, 2005 at 00:52 UTC
Re: Showing all installed modules
by jacques (Priest) on Jun 23, 2005 at 21:05 UTC
    use HTML::Perlinfo; perlinfo(INFO_MODULES);
Re: Showing all installed modules
by mikeraz (Friar) on Jun 23, 2005 at 23:37 UTC

    I've always been fond of
      perldoc -t perllocal | grep Module | cut -d\" -f 3 | sort | uniq
    with maybe a | vgrep tacked on for fun.

    Be Appropriate && Follow Your Curiosity