You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
305 B
11 lines
305 B
#!/usr/bin/env perl
|
|
use strict;
|
|
use warnings;
|
|
|
|
my $module = shift;
|
|
die "Usage: pversion Some::Module" unless $module;
|
|
|
|
package LETO::PVERSION; # for modules which won't let you use 'em in %main::
|
|
eval "use $module";
|
|
die $@ if $@;
|
|
print $module->VERSION || "Could not determine a version for $module", $/;
|
|
|