libfile-which-perl

Perl module for searching paths for executable programs
  https://metacpan.org/release/File-Which
  0
  no reviews



File::which simulates the behavior of the standard 'which' program: it searches directories of a user's path (as returned by file::spec) looking for executable files matching a given name.

on debian /usr/bin/which is guaranteed to be available, but going through the perl implementation can still save a fork.