Chapter 3. Using libraries

3.5. What version? Where?

The best way to find out what version of a module is installed and where is to use pmtools.

How do I Install pmtools?

cpanm pmtools

What version of that module is installed?

$ pmvers Moo

Where is that module installed?

$ pmpath Moo

I don't want to install pmtools

To find the version number:

$ perl -e 'use Moo 99999'
Moo version 9999 required--this is only version 2.003003 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

To find the location:

$ perldoc -l Moo