Like most Perl programmers I know, I have a tiny command line utility which prints out a module version:
#!/usr/bin/env perl my $module = shift; package OVID::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", $/; __END__ =head1 NAME pversion =head1 SYNOPSIS pversion Some::Module =head1 DESCRIPTION Prints out the Perl version number of an installed module. =cut
Today, while trying to figure out a versioning issue in vim, I added the ,pv mapping. If you're on a module name and type that, it automatically displays the version number.
noremap ,pv :!echoversion `$HOME/bin/pversion ' '`
pmvers
from pmtools
which WFM (along with a few other handy tools).