Use Module::Version to get the version of an installed Perl module

In response to our article 3 quick ways to find out the version number of an installed Perl module from the terminal, programmer Ron Savage got in touch to point out that it’s possible to use the Perl module Module::Version to get the version number of an installed module.

Module::Version comes with a useful command line program, mversion which when passed the name of a module, will print the version out. Simply install Module::Version via CPAN and mversion will be installed automatically.

Once Module::Version is installed, to get the version number of Module::Build (for example) using mversion, go to the command line and type:

mversion Module::Build


This article was originally posted on PerlTricks.com.

Tags

David Farrell

David is a professional programmer who regularly tweets and blogs about code and the art of programming.

Browse their articles

Feedback

Something wrong with this article? Help us out by opening an issue or pull request on GitHub