App::Whiff(3pm)

App::Whiff3pm

Find the first executable of a series of alternatives

Version

version 0.008

Overview

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.

Perl version

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.

Methods

find_first

  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.

run

This method is called by the whiff program to ... well, run.

Contributors

•

Florian Schlichting <[email protected]>

•

Ricardo Signes <[email protected]>

•

Ricardo Signes <[email protected]>

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0–7
  2. 8–10
  3. 11
  4. 12
  5. 13

Author

Ricardo SIGNES <[email protected]>

From whiff 0.008-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.