in reply to Re: Re: Hand Rolled CGI/Sendmail
in thread Hand Rolled CGI/Sendmail
As for error checking, using or die "error..." should do the trick:
my $query = new CGI or die "Couldn't create CGI object!\n"; open(MAIL, "|/usr/sbin/sendmail -t") or die "Couldn't start sendmail: $!\n"; close(MAIL) or die "Error closing sendmail: $!, exit status $?\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Hand Rolled CGI/Sendmail
by Lost (Novice) on May 07, 2004 at 21:00 UTC | |
|
Re: Re: Re: Re: Hand Rolled CGI/Sendmail
by Lost (Novice) on May 07, 2004 at 21:35 UTC |