On Fri, 25 Jul 2003 17:59:56 +1000, [EMAIL PROTECTED] (Unknown Sender)
wrote:

>I am trying to run a perl cgi script for the first time... under linux 
>redhat8. my apache works fine. localhost gives me the test page. I have 
>this script (very usual)
>
>#! /usr/bin/perl
>
>#!/usr/local/bin/perl
># hello.pl - My first CGI program
>
>print "Content-Type: text/html\n\n";
># Note there is a newline between 
># this header and Data
>
># Simple HTML code follows
>
>print "<html> <head>\n";
>print "<title>Hello, world!</title>";
>print "</head>\n";
>print "<body>\n";
>print "<h1>Hello, world!</h1>\n";
>print "</body> </html>\n";
>

Well the first line is wrong. #! /usr/bin/perl  has a space after
the ! , and also may not be where your perl is located.



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

Reply via email to