Created
March 20, 2013 16:41
-
-
Save andrefs/5206180 to your computer and use it in GitHub Desktop.
CPAN module version
This file contains hidden or 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
#!/usr/bin/env perl | |
# Prints version for each CPAN module taken as argument | |
for(@ARGV){ | |
my $sentence = 'perl -M'.$_.' -e \'print '.'"$'.$_.'::VERSION\n"'.'\''; | |
print "$_\t"; | |
print qx{$sentence}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment