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

  • Files spread between Dropbox, Google Drive, Gmail, Slack, and more? Dokkio, a new product from the PBworks team, integrates and organizes them for you. Try it for free today.

View
 

InstalledModulesAndTheirVersions

Page history last edited by David B 10 years, 11 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.