| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Want to organize your cloud files? Sign up for a free webinar to see how Dokkio (a new product from PBworks) can help you find, organize, and collaborate on your Drive, Gmail, Dropbox, and Slack files: Weds, May 27 at 2PM Eastern / 11AM Pacific
View
 

InstalledModulesAndTheirVersions

Page history last edited by David B 11 years, 2 months ago

Use Perl to discover all the installed modules and their versions:

 

 

use File::Find;
use ExtUtils::MakeMaker;

find(
  sub {
    next unless /.pm$/i;
    my $mod = $File::Find::name;
    $mod =~ s/^$File::Find::topdir/?//;
    $mod =~ s/.pm$//i;
    $mod=~s!/!::!g;
    my $ver=MM->parse_version($File::Find::name);
    print "$mod ($ver)n"
  },
  @INC
)

 

-Attribution

Comments (0)

You don't have permission to comment on this page.