DOKK / manpages / debian 11 / whiff / App::Whiff.3pm.en
App::Whiff(3pm) User Contributed Perl Documentation App::Whiff(3pm)

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

version 0.005

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.

  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 <rjbs@cpan.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.

2021-01-08 perl v5.32.0