in reply to Premature end of headers (ad naseum0

Hi,

Well, Ill tell you, I have been programming in Perl for many a year now and, every once in a while, an ISE will nail me for some time too! Here is my checklist:

BEGIN{ print "Content-type: text/html\n\n" }

On this note, your script may be generating output, just note the proper headers. The headers won't be automatically sent, you have to print them yourself.

This can be a pain sometimes. If I think of anything else, Ill update this note. Good luck!

update: Some spelling errors.

Ted Young

($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)

Replies are listed 'Best First'.
Re^2: Premature end of headers (ad naseum0
by wfsp (Abbot) on Dec 07, 2004 at 08:54 UTC
    That's a good check list.

    I would add two points:

    Check the line endings (may not be appropriate in this case).
    Check that the script you are testing _is really_ the one you think it is!

    The last one caused me a lot of grief!