ExtUtils::Installed vs pminst vs?

David Cantrell david at cantrell.org.uk
Tue Mar 31 14:55:50 BST 2009


On Sun, Mar 29, 2009 at 03:14:27PM +0100, Minty wrote:

> Holy wars aside, is there a cross platform friendly way to get a list
> of what modules I have available?

File::Find::Rule->file()->name('*.pm')->in(@INC);

then apply appropriate transmogrifications to the list to turn it into
module names instead of filenames.  If you're paranoid about package
names and filenames not matching up, there's code in
CPAN::ParseDistribution that you could use.  It doesn't appear to have
propagated across the interwebnet yet, so ...

http://tinyurl.com/cpan-parsedistribution

-- 
David Cantrell | Hero of the Information Age

Did you know that shotguns taste like candy canes?  Put the barrel in
your mouth and pull the trigger for an extra blast of minty goodness!


More information about the london.pm mailing list