/
README
73 lines (45 loc) · 1.91 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
<http://search.cpan.org/perldoc?pmpath>, Module::InstalledVersion,
Module::Info
AUTHOR
Jozef Kutej
CONTRIBUTORS
The following people have contributed to the App::whichpm by committing
their code, sending patches, reporting bugs, asking questions,
suggesting useful advises, nitpicking, chatting on IRC or commenting on
my blog (in no particular order):
Jerrad Pierce
Skye Shaw
Andreas Hadjiprocopis
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.