![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Need help with Perl in IIS setupby abcde (Scribe) |
on Jan 06, 2006 at 21:16 UTC ( #521644=note: print w/replies, xml ) | Need Help?? |
Hello there, welcome to perl monks The print "Content-type: text/html"; line is used on Unix servers to tell the browser what it should display, and it should always come before any text. However, it appears that IIS or ActivePerl is adding this line for you. From what I understand, your code looks like this:
In which case, the browser has already got a Content-Type header from IIS, and your script is sending it another one! Try removing it, and see if that fares any better. One more thing - the 2nd and 3rd lines you removed, you should not have done - strict makes your code easier to debug, and CGI allows you to use forms and web-page things, so it is best to add them back in. Hope this helped
In Section
Seekers of Perl Wisdom
|
|