Skip to content

Instantly share code, notes, and snippets.

@skreuzer
Created August 9, 2010 13:33
Show Gist options
  • Save skreuzer/515417 to your computer and use it in GitHub Desktop.
Save skreuzer/515417 to your computer and use it in GitHub Desktop.
Display the version of a Perl module
#!/usr/bin/perl
use strict;
foreach my $module ( @ARGV ) {
eval "require $module";
printf( "%-20s: %s\n", $module, $module->VERSION ) unless ( $@ );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment