NAME
module-version - Program to get module versions
SYNOPSIS
This program shows you the version of a module or several modules, in a comfortable manner.
module-version Dancer
module-version --dev --full This That Another
module-version -q -i modules.txt
In Perl-world, we have many ways to determine a version of a module. You can run perl -MModule -le'print $Module::Version'
, but once the name is very long it becomes tiresome to write.
We can try to load the module in a specific version that is (hopefully) greater than what we already have installed (if at all). That way we purposely inflict an error on the compiler and try to read the error msg. perl -MModule\ 9999
. This does not work on multiple modules at once. Some modules even have long version numbers, such as a date, and then you need to run perl -MModule\ 9999999999
which is seriously annoying.
There are a few modules out there that get you the version number of other modules but none of them are applications, nor do they have enough options for comfortable day-to-day usage. This is where module-version
comes in.
OPTIONS
- -f, --full
-
This outputs both the name and the version of module, instead of just the version number.
module-version -f ThisModule ThatModule module-version --full ThisModule ThatModule
- -i, --input FILE
-
This reads a list of modules from a file.
module-version -i my_modules.txt module-version --input my_modules.txt
- -d, --dev
-
This shows the developer versions (0.01_01) just as that instead of eval()ing them.
module-version -d Test::More module-version --dev Test::More
- -q, --quiet
-
Usually if a module does not exist,
module-version
will warn about it. This allows you to silent those warnings and just carry on.module-version -q This::Does::Not::Exist But::This::Does module-version --quiet This::Does::Not::Exist But::This::Does
SEE ALSO
Github page at http://github.com/xsawyerx/module-version.
COPYRIGHT
Copyright 2010 Sawyer X.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.