1PWHICH(1) User Contributed Perl Documentation PWHICH(1)
2
3
4
6 pwhich - Perl-only `which'
7
9 $ pwhich perl
10 $ pwhich -a perl # print all matches
11 $ pwhich perl perldoc ... # look for multiple programs
12 $ pwhich -a perl perldoc ...
13
15 `pwhich' is a command-line utility program for finding paths to other
16 programs based on the user's "PATH". It is similar to the usualy Unix
17 tool `which', and tries to emulate its functionality, but is written
18 purely in Perl (uses the module "File::Which"), so is portable.
19
20 Calling syntax
21 $ pwhich [-a] [-v] programname [programname ...]
22
23 Options
24 -a The option -a will make "pwhich" print all matches found in the
25 "PATH" variable instead of just the first one. Each match is
26 printed on a separate line.
27
28 -v Prints version (of "File::Which") and copyright notice and exits.
29
31 Bugs should be reported via the CPAN bug tracker at
32
33 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Which>
34
35 For other issues, contact the maintainer.
36
38 Adam Kennedy <adamk@cpan.org>
39
40 Per Einar Ellefsen <pereinar@cpan.org>
41
42 Originated in modperl-2.0/lib/Apache/Build.pm. Changed for use in
43 DocSet (for the mod_perl site) and Win32-awareness by me, with slight
44 modifications by Stas Bekman, then extracted to create "File::Which".
45
46 Version 0.04 had some significant platform-related changes, taken from
47 the Perl Power Tools `which' implementation by Abigail with
48 enhancements from Peter Prymmer. See
49 <http://www.perl.com/language/ppt/src/which/index.html> for more
50 information.
51
53 Copyright 2002 Per Einar Ellefsen.
54
55 Some parts copyright 2009 Adam Kennedy.
56
57 This program is free software; you can redistribute it and/or modify it
58 under the same terms as Perl itself.
59
61 perl, File::Which, which(1)
62
63
64
65perl v5.16.3 2009-09-26 PWHICH(1)