Lightning flashed, thunder crashed and Peter Scott <[EMAIL PROTECTED]> whispered:
| Yes, but if you create the above using something like
|
| 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
is if the system fails to fork a new process. This only happens when the
system is in very bad shape.
Many people think this will die if sendmail fails (if it isn't in
/usr/sbin, for example). This is not true though. Only by checking the
status of the close will you be able to determine this.
-spp
--
Stephen P Potter [EMAIL PROTECTED]
"You can't just magically invoke Larry and expect that to prove your point.
Or prove that you have a point." -Simon Cozens
UNIX, Perl, PHP, Web Consulting and Training http://www.unixlabs.net/~spp/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]