pwhich - Perl-only `which'
$ pwhich perl $ pwhich -a perl # print all matches $ pwhich perl perldoc ... # look for multiple programs $ pwhich -a perl perldoc ...
The pwhich bundled with File-Which is deprecated It will be removed from File-Which, but not before April 30, 2015 Please install App::pwhich instead
`pwhich' is a command-line utility program for finding paths to other programs based on the user's
PATH. It is similar to the usually Unix tool `which', and tries to emulate its functionality, but is written purely in Perl (uses the module
File::Which), so is portable.
$ pwhich [-a] [-v] programname [programname ...]
The option -a will make
pwhichprint all matches found in the
PATHvariable instead of just the first one. Each match is printed on a separate line.
Prints version (of File::Which) and copyright notice and exits.
Bugs should be reported via the GitHub issue tracker
For other issues, contact the maintainer.
Perl API for pwhich
Guts of this script.
Comes with a
can_runfunction with slightly different semantics that the traditional UNIX where. It will find executables in the current directory, even though the current directory is not searched for by default on Unix.
This module purports to "check that a command is available", but does not provide any documentation on how you might use it.
Adam Kennedy <email@example.com>
Per Einar Ellefsen <firstname.lastname@example.org>
Originated in modperl-2.0/lib/Apache/Build.pm. Changed for use in DocSet (for the mod_perl site) and Win32-awareness by me, with slight modifications by Stas Bekman, then extracted to create
Version 0.04 had some significant platform-related changes, taken from the Perl Power Tools
`which' implementation by Abigail with enhancements from Peter Prymmer. See http://www.perl.com/language/ppt/src/which/index.html for more information.
Copyright 2002 Per Einar Ellefsen.
Some parts copyright 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 144:
Unknown directive: =iten