in reply to Easiest way to find all the Perl Modules on a system?

See ExtUtils-Install. The perldoc for ExtUtils::Installed.pm says
ExtUtils::Installed provides a standard way to find out what core an +d module files have been installed.
try:
#!/usr/bin/perl use ExtUtils::Installed; my ($inst) = ExtUtils::Installed->new(); my (@modules) = $inst->modules(); foreach (@modules) { print $_, ' v', $inst->version($_), "\n"; }
I guess if you specify the directory to search, you can separate the Core modules out.

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Easiest way to find all the Perl Modules on a system?
by jettero (Monsignor) on Dec 14, 2006 at 15:25 UTC
    That is an elegant solution. I used to use all kinds of find and greps and perl one liners... I have added this to my bashrc. It makes me wonder what else I'm missing. Hrm, except that I see below it doesn't find everything.

    And looking at the src for the package, it'd not be easy to inherit E::I and extend new() to include more dirs — it's just not set up for that. Sad really.

    -Paul