Skip to content

Instantly share code, notes, and snippets.

@hatyuki
Created October 1, 2009 03:11
Show Gist options
  • Save hatyuki/198685 to your computer and use it in GitHub Desktop.
Save hatyuki/198685 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
##
# モジュールのバージョンをしらべる
# ./chpmv Moose Mouse Any::Moose Data::Dumper ...
use warnings;
use strict;
use 5.009004;
use Module::Load;
die unless @ARGV;
foreach my $module (@ARGV) {
eval { load $module; };
if ($@) { print "$module not found\n" }
else { print $module, ' ', $module->VERSION, "\n" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment