ExtUtils::Installed vs pminst vs?

Matt Lawrence matt.lawrence at virgin.net
Tue Mar 31 19:26:37 BST 2009

David Cantrell wrote:
> 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.
Module::Util will do this for you:

use Module::Util qw( find_in_namespace );
@all_modules_in_at_inc = find_in_namespace('');

it's pure perl, and uses File::Spec, so it should work on any platform.


More information about the london.pm mailing list