pmq is a tool to query installed Perl modules. It will find the .pm file for a given module for Perl) and its version number. It is robust against modules that give an error on loading or don't define a version number. pmq --all lists information on all installed modules, which is useful for checking that Perl upgrades haven't broken anything.