Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (37 sloc) 1.566 kb
NAME
App::whichpm - locate a Perl module and it's version
SYNOPSIS
use App::whichpm 'which_pm';
my ($filename, $version) = which_pm('App::whichpm');
my $filename = App::whichpm::find('App::whichpm');
from shell:
whichpm App::whichpm
whichpm Universe::ObservableUniverse::Filament::SuperCluster::Cluster::Group::Galaxy::Arm::Bubble::InterstellarCloud::SolarSystem::Earth
DESCRIPTION
Loads a given module and reports it's location and version.
The similar function can be achieved via:
perldoc -l Some::Module
perl -MSome::Module -le 'print $INC{"Some/Module.pm"}'
perl -MSome::Module -le 'print Some::Module->VERSION'
pmpath Some::Module
pmvers Some::Module
EXPORTS
which_pm
same as find only exported under `which_pm' name.
FUNCTIONS
find($module_name)
Loads the `$module_name'.
In scalar context returns filename corresponding to `$module_name'. In
array context returns filename and version.
`$module_name' can be either `Some::Module::Name' or
`Some/Module/Name.pm'
SEE ALSO
http://perlmonks.org/?node=whichpm, pmpath, Module::InstalledVersion,
Module::Info
LICENSE AND COPYRIGHT
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
AUTHOR
Jozef Kutej
Jump to Line
Something went wrong with that request. Please try again.