On Fri, 22 Dec 2000, Irwan Hadi wrote:
<snip>
>
> # Print the HTML response page to STDOUT
> print <<EOF ;
> <<html>
> <<head><title>CGI Results</title></head>
> <<body>
> <<center><h1>Hello, world (in Perl).</h1></center>
> <<center><h5>Written by me</h5></center>
> <</body>
> <</html>
> EOF
>
> [I add < in front of the tag, to make it won't be considered as HTML mail]
>
</snip>
I'm not sure why Apache would behave that way, but it seems to me that your
Perl syntax is not completely correct either. This is the way I've usually
done it without experiencing any problems:
print <<End_of_Start;
Content-type: text/html
<html>
<head>
...
...
It seems to me that the problem is how you're not defining the content-type,
which could confuse Apache when run from within a Perl script. By the way,
as far as I remember the blank space I left between the content-type and the
<html> tag needs to be there for the syntax to work.
Let me know if this works.
------------------------------------------------------
Nitebirdz
------------------------------------------------------
Thus spake the master programmer:
"You can demonstrate a program for a corporate
executive, but you can't make him computer literate."
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list