[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] compiling error



Dear Sadie,

Your program calls sendmail, which is a Unix application.  At the risk
of sounding pedantic, this is roughly equivalent to telling your Mac
to open the Windows File Manager (or some other program that is
specific to another platform).

You should also know that in MacPerl, file paths are represented with
colons (:) and not slashes (/) as in Unix.  Thus, if there were a
sendmail on the mac (which there isn't), it would be written as
follows: usr:lib:sendmail.

That said, I'm afraid I don't have a handy solution for you since I've
not done any cgi on the mac.  The other folks on this list will surely
be able to help out though, so hang in there!

Eric D. Friedman
friedman@uci.edu

>#!/usr/local/bin/perl
>#---------------
>#program for sending form results
>#------------
>
>$mailprog = '/usr/lib/sendmail'
>
>print "Content-type: text/html\n\n";
>
>if ($ENV{'REQUEST_METHOD'} eq "get") { $buffer = @ENV{'QUERY_STRING'}: }
>else { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); }
>
>