Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Unwanted line (CGI question)by xiaoyafeng (Deacon) |
on Oct 21, 2008 at 09:56 UTC ( [id://718432]=perlquestion: print w/replies, xml ) | Need Help?? |
xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks!!
As my last nodenewbie questions for web in perl[OT], I've studied Web development these day. After reading a great number of document intensively and hearing some monks' suggestionsRe: newbie questions for web in perl[OT], I decide to make use of CGI::Application to build my web. It seems all OK so far except one minor thing: Every page output by CGI will add one line 'Content-Type: text/html; charset=ISO-8859-1'. yesterday, I ask for it on chatterbox. some guru say there is a redundant statement: header; in my script. But I double check it, the answer is no. Below is my test snippet: index.htmlaction.cgi WebApp.pm template.tt
Sadly, the wield line is still there! I suspect my platform (M$ + IIS6.0) caused it without any reasons. Anybody could tell me whether my guess is right or not. I hope perl gurus could enlighten me. Thanks in advance!! BTW, I found many questions about CGI on Seekers of Perl Wisdom.(Unfortunately, I can't found the answer to my question) It appears CGI is big, dark and mysterious forest to newbie. ;) UPDATEThanks for everybody replied! I've found use NPH SCRIPTS could solve this question perfectly! I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
Back to
Seekers of Perl Wisdom
|
|