Scroll to navigation

App::Whiff(3pm) User Contributed Perl Documentation App::Whiff(3pm)

NAME

App::Whiff - find the first executable of a series of alternatives

VERSION

version 0.006

DESCRIPTION

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 SUPPORT

This module has a long-term perl support period. That means it will not require a version of perl released fewer than five years ago.

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.

AUTHOR

Ricardo SIGNES <rjbs@semiotic.systems>

COPYRIGHT AND LICENSE

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.

2021-08-24 perl v5.32.1