22 Mar 2022 19:55:23 UTC
- Distribution: App-pwhich
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (355 / 0 / 0)
- KwaliteeBus factor: 1
- 66.23% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity24 month
- Download (17.34KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userPLICEASE Graham Ollis 🇺🇦🌻
- SEE ALSO
- COPYRIGHT AND LICENSE
pwhich - Pure Perl implementation of which
$ pwhich perl $ pwhich -a perl # print all matches $ pwhich perl perldoc ... # look for multiple programs $ pwhich -a perl perldoc ... $ pwhich -s perl # silent mode
pwhichis 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] [-s] [-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.
No output, just return 0 if any of the executables are found, or 1 if none are found.
Prints version (of
File::Which) and copyright notice and exits.
Bugs should be reported via the GitHub issue tracker https://github.com/uperl/App-pwhich/issues For other issues, contact the maintainer.
This module does not know about built-in shell commands, as the built-in command
This module is fully supported back to Perl 5.8.1. It may work on 5.8.0.
If you want these executables installed without the
pprefix (useful on platforms like windows that do not have their own native which or where), set
no-prefixduring install of this module.
Original author: Per Einar Ellefsen <email@example.com>
Current maintainer: Graham Ollis <firstname.lastname@example.org>
Adam Kennedy <email@example.com>
This software is copyright (c) 2002-2022 by Per Einar Ellefsen <firstname.lastname@example.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.