pwhich - Perl-only `which'
$ pwhich perl $ pwhich -a perl # print all matches $ pwhich perl perldoc ... # look for multiple programs $ pwhich -a perl perldoc ...
`pwhich' is a command-line utility program for finding paths to other programs based on the user's PATH. It is similar to the usualy Unix tool `which', and tries to emulate its functionality, but is written purely in Perl (uses the module File::Which), so is portable.
PATH
File::Which
$ pwhich [-a] [-v] programname [programname ...]
The option -a will make pwhich print all matches found in the PATH variable instead of just the first one. Each match is printed on a separate line.
pwhich
Prints version (of File::Which) and copyright notice and exits.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl, File::Which, which(1)
Per Einar Ellefsen, <per.einar (at) skynet.be>
To install File::Which, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Which
CPAN shell
perl -MCPAN -e shell install File::Which
For more information on module installation, please visit the detailed CPAN module installation guide.