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 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Which>
35
36 For other issues, contact the maintainer.
37
39 Adam Kennedy <adamk@cpan.org>
40
41 Per Einar Ellefsen <pereinar@cpan.org>
42
43 Originated in modperl-2.0/lib/Apache/Build.pm. Changed for use in
44 DocSet (for the mod_perl site) and Win32-awareness by me, with slight
45 modifications by Stas Bekman, then extracted to create "File::Which".
46
47 Version 0.04 had some significant platform-related changes, taken from
48 the Perl Power Tools `which' implementation by Abigail with
49 enhancements from Peter Prymmer. See
50 <http://www.perl.com/language/ppt/src/which/index.html> for more
51 information.
52
54 Copyright 2002 Per Einar Ellefsen.
55
56 Some parts copyright 2009 Adam Kennedy.
57
58 This program is free software; you can redistribute it and/or modify it
59 under the same terms as Perl itself.
60
62 perl, File::Which, which(1)
63
64
65
66perl v5.12.0 2009-09-26 PWHICH(1)