in reply to Re: Searching for Sendmail
in thread Searching for working Sendmail

Maybe 'which' would be better. It does have a cpan module http://search.cpan.org/~pereinar/File-Which-0.05/Which.pm

Replies are listed 'Best First'.
Re^3: Searching for Sendmail
by tirwhan (Abbot) on Feb 16, 2009 at 12:08 UTC

    "which" (and, according to the perldoc, File::Which) will only look in directories in your $PATH, whereas "whereis" will also find binaries which are not in your path.


    All dogma is stupid.
      Good point, which is pretty useless if you are just running the command and the shell will check the path anyway.

      It's pretty tempting to write a File::whereis

      Lyle