in reply to Web page output for sendmail problem

What is output to stderr for each case? The third possibility should work. Using warn or die is incorrect since they take a string to output to STDERR, not a function reference. You probably do want to put a warn inside mal() so the error is logged. Also, you should use or instead of || and mal() instead of &mal.

Replies are listed 'Best First'.
Re: Re: Web page output for sendmail problem
by Anonymous Monk on Nov 21, 2002 at 18:39 UTC
    Tried this and still no luck:
    open (MAIL,"|$sendmail") or mal();