Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Answer: What causes 'premature end of script headers'?

by gvs_jagan (Initiate)
on Jun 10, 2005 at 12:26 UTC ( #465531=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > What causes 'premature end of script headers'? - Answer contributed by gvs_jagan

You could encounter the 'premature end of script headers'

1) In case you were trying to accept values from a html page thru textfields

per se

print p("enter your name" , textfield("nam","");

missing out on one of the coats could cause it. For instance

print p("enter your name", textfield("nam , ""); #the end coat near nam is missing, this could cause

2) Also if you forget paranthesis near the html headers . In the below mentioned case missing out the paranthesis near the end_html could cause you the error

print header, start_html() ;
end_html();# leaving the paranthesis here

regards jagan

  • Comment on Answer: What causes 'premature end of script headers'?
Log In?

What's my password?
Create A New User
and dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-07-20 16:55 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (438 votes). Check out past polls.