This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 运行一个很简单的Perl程序却出错,何故?
-victory(Victory);
2002-12-23
{720}
(#931462@0)
-
You need to stick a header at the very beginning and a blank line seperating it from the html body, like this:print <<END_of_Multiline_Text;
Content-type: text/html
<HTML>
<HEAD>
<TITLE>Welcome!</TITLE>
</HEAD>
<BODY>
<H1>Welcome!</H1>
</BODY>
</HTML>
END_of_Multiline_Text
-dennis2(Dennis);
2002-12-23
{185}
(#931593@0)
-
干吗用window 跑perl啊? hehe, anyway, 输出第一行一定要:是 print "content-type: text/html\n\n";
-tztz(tztz);
2002-12-23
(#932011@0)
-
你需要给出HTML的Header
-hunterz(Hunter);
2002-12-26
{856}
(#938029@0)