in reply to Why does my CGI script sometimes first show headers and then content?

Indeed, it is hard to imagine what's happening. Are you using "print 'Content-type: text/html" more than once? Is it possible that some runnings of your script route through a second printing of the header? It can only happen once in a script. See my own question and the helpful replies here.

—Brad
"A little yeast leavens the whole dough."
  • Comment on Re: Why does my CGI script sometimes first show headers and then content?