Rob wrote:

> Is there a perl command to list installed modules?

#!/usr/bin/perl
use warnings;
use strict;

foreach my $mod ( sort CPAN::Shell->expand("Module","/./") )
{
    next unless $mod->inst_file;
    print $mod->id;
    print ": ", $mod->inst_version 
        if $mod->inst_version;
    print "\n";
}

perhaps a little different from ExtUtils::Installed, but this is what Perl 
is all about.. TMTOWTDI :)

I've also written a little module reporting script that expands on this 
idea; checking CPAN and producing a nice report of installed modules and 
versions. 

http://www.webdragon.net/mr/

currently it requires a unix/linux OS, though. I haven't gotten around to 
making it fully cross-platform. 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to