Hi everybody. I'm learning Perl and CGI programming using MAMP as web-
server on OSX and I can't use the standard CGI module. Look at this
(very) simple script:

#!/usr/local/bin/perl

use CGI ':standard';

print header();
print start_html();

for $i (param()) {
    print "<b>", $i, "</b>: ", param($i), "<br>\n";
}

print end_html();

It should shows a blank page; on the contrary it outputs the following
error:
500 Server Error
[Mon Sep 24 21:00:38 2007] [error] [client ::1] (2)No such file or
directory: exec of '/Applications/MAMP/cgi-bin/backatcha-cgi' failed
[Mon Sep 24 21:00:38 2007] [error] [client ::1] Premature end of
script headers: backatcha-cgi

It works from the command line, anyway.
Scripts without cgi modules works instead.

Thanks for any help


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to