> "Stephen P. Potter" <[EMAIL PROTECTED]> said:

> | 
> |          open (MAIL, "|/usr/sbin/sendmail $email")
> | 
> | to which you should by the way add
> | 
> |          or die "sendmail: $!\n";
> 
> This probably does not do what you think it does.  It is almost always
> worthless to check the status of a pipe.  The only time the pipe will fail

Not quite.  If sendmail is not executable or misspelled, the die will return 
an error message.  Try:

open(IN, "|/usr/sbin/sendmial") || die "cannot run sendmail - $!\n";

This returns the error:

cannot run sendmail - no such file or directory

-- 
Smoot Carl-Mitchell
Consultant





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to