Skip to content

Instantly share code, notes, and snippets.

@andrefs
Created March 20, 2013 16:41
Show Gist options
  • Save andrefs/5206180 to your computer and use it in GitHub Desktop.
Save andrefs/5206180 to your computer and use it in GitHub Desktop.
CPAN module version
#!/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