
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.