25 Aug 2021 15:23:46 UTC
- Distribution: App-Whiff
- Module version: 0.007
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (405 / 0 / 4)
- KwaliteeBus factor: 1
- 35.90% Coverage
- License: perl_5
- Perl: v5.12.0
- Activity24 month
- Download (15.88KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionRJBS Ricardo SIGNES 😄and 3 contributors
- Ricardo SIGNES
- Florian Schlichting
- Ricardo Signes
- PERL VERSION
- COPYRIGHT AND LICENSE
App::Whiff - find the first executable of a series of alternatives
This module implements logic used by the whiff command, which takes a number of command names and returns the first one that exists and is executable.
This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
my $filename = App::Whiff->find_first(\@names);
Given an arrayref of command names (which should not be anything other than base filename), this method either returns an absolute path to the first of the alternatives found in the path (using File::Which) or false.
This method is called by the whiff program to ... well, run.
Ricardo SIGNES <firstname.lastname@example.org>
Florian Schlichting <email@example.com>
Ricardo Signes <firstname.lastname@example.org>
This software is copyright (c) 2008 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.