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

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

InstalledModulesAndTheirVersions

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