Created
July 11, 2009 14:50
-
-
Save xaicron/145267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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