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

Tags

David Farrell

David is the founder and editor of PerlTricks.com. An organizer of the New York Perl Meetup, he works for ZipRecruiter as a software developer.

Browse their articles