Raw html from CGI.pm

posted by CodeGirl
Bookmark This Page:   Add 'Raw html from CGI.pm' to Del.icio.us Add 'Raw html from CGI.pm' to digg Add 'Raw html from CGI.pm' to Simpy Add 'Raw html from CGI.pm' to OnlyWire 

Note to self: if your perl CGI script ever returns what looks like raw HTML in your browser, check for print statements that
dont print html. ALL DAY I looked for the bug, luckily another team member found it for me. It was in a totally different method
from the one that generates the HTML, and therefore ended up getting sent just before the header, screwing up everything.

I also learned today that you can use

wget -d

to see all the headers being returned.

This entry was posted on Friday, August 20th, 2004 at 3:24 pm and is filed under Perl. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.


Protect Web Form!

Our VPS Hosting By RimuHosting
Java and Linux VPS Hosting by RimuHosting


Bad Behavior has blocked 33 access attempts in the last 7 days.