in reply to Re: Premature end of script headers?
in thread Premature end of script headers?

I added those lines exactly as you wrote them. The results were bizarre and unexpected, but now, for whatever reason, it works :) In what way were they bizarre and unexpected? I added those lines, changed nothing else, and for whatever reason, the code works. No warnings are shown to the browser or to the server logs.

I also didn't know that CGI::Carp was available for ActivePerl.

Thanks for your help!
MrCromeDome

  • Comment on Re: Re: Premature end of script headers?

Replies are listed 'Best First'.
Re: Premature end of script headers?
by CharlesClarkson (Curate) on Jun 22, 2001 at 01:47 UTC

    In what way were they bizarre and unexpected? I added those lines, changed nothing else, and for whatever reason, the code works.

    In the fall of 1980, I took some computer courses at USL. There was a program called PPOM that acurately predicted the amount of time to retrieve a printout and the amount of bugs a program would encounter.

    If PPOM had a high score, you could pretty much give up on fixing your program. Often the very same code would run error free the next day. (The same thing occurs today when I restart windows.)


    What does PPOM stand for?
    Print Phases Of the Moon
    Go figure!

    Enjoy,
    Charles K. Clarkson
Re: Re: Re: Premature end of script headers?
by tachyon (Chancellor) on Jun 24, 2001 at 16:59 UTC

    Look in the top left hand corner of the browser window. Whant *must* have changed is that your script was emitting some noise on STDOUT prior to the "Content-Type: text/html\n\n" header. Anyway glad it worked!

    Cheers

    tachyon