whichpm - locate a Perl module and it's version
# shows path and version (if vailable) of the Perl module whichpm Some::Module::Name whichpm -v Some::Module::Name whichpm --verbose Some::Module::Name # shows just path to the Perl module whichpm -q Some::Module::Name whichpm --quiet Some::Module::Name # add lib/ into @INC whichpmv -l Some::Module::Name # add mylib into @INC whichpmv -Imylib Some::Module::Name # show version of App::whichpm whichpm --version # show/edit .pm file less `whichpm Some::Module::Name` vim `whichpm Some::Module::Name`
Loads the module, prints its file system location and version.
When STDOUT is not a TTY, prints just file name by default. (-v can force printing version too)
To install App::whichpm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::whichpm
CPAN shell
perl -MCPAN -e shell install App::whichpm
For more information on module installation, please visit the detailed CPAN module installation guide.