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

"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.

Replies are listed 'Best First'.
Re^4: Searching for Sendmail
by cosmicperl (Chaplain) on Feb 16, 2009 at 13:45 UTC
    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