Skip to content

Instantly share code, notes, and snippets.

@xaicron
Created July 11, 2009 14:50
Show Gist options
  • Save xaicron/145267 to your computer and use it in GitHub Desktop.
Save xaicron/145267 to your computer and use it in GitHub Desktop.
#!C:/Perl/bin/perl
use strict;
use warnings;
use utf8;
use ExtUtils::Installed;
use UNIVERSAL::require;
my @module_list = ExtUtils::Installed->new->modules;
my $max_len = length [ sort { length $b <=> length $a } @module_list ]->[0];
for my $module (@module_list) {
no warnings 'uninitialized';
eval { $module->require } or next;
my $ver = $module->VERSION || '';
printf "%-*s : %s\n", $max_len, $module, $ver;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment