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
21 $ pwhich [-a] [-v] programname [programname ...]
22
23 Options
24
25 -a The option -a will make "pwhich" print all matches found in the
26 "PATH" variable instead of just the first one. Each match is
27 printed on a separate line.
28
29 -v Prints version (of "File::Which") and copyright notice and exits.
30
32 This program is free software; you can redistribute it and/or modify it
33 under the same terms as Perl itself.
34
36 perl, File::Which, which(1)
37
39 Per Einar Ellefsen, <per.einar (at) skynet.be>
40
41
42
43perl v5.8.8 2002-06-24 PWHICH(1)