\begin{Terry Collins}
> I'm lost. Can someone help with interpreting what these errors mean?
> 
> The perl stuff below is from the O'Reilly MySQL &Msql book. Page 138
> 7/99 edition.
> 
> ................................
> #!/usr/bin/perl -w
> 
> print <<HTML;
> Content-type: text/html\n\n
> 
> <HTML><HEAD><TITLE></title></head><BODY>
> <p>Environment Variables
> <p>
> HTML
> 
> foreach (keys %ENV) { print "$_: $ENV($_)<BR>\n"; }
                                       ^  ^
these should be { }

> print <<HTML;
> </body></html>
> HTML
> ........................................................................
> 
> When run under Apache on Suse 6.4, it produces the following output in
> the /var/log/httpd/error_log
> 
> [Wed Nov 29 17:09:00 2000] [error] [client 192.168.27.10] Premature end
> of script headers: /usr/local/httpd/cgi-bin/mysqlenv.pl
> owl:terryc>         

i can only think the warnings produced from your syntax error and 
"perl -w" were screwing things up..

(you also don't need two "\n"s *and* a blank line after
Content-type. thats completely harmless tho)

-- 
 - Gus


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to