http://www.perlmonks.org?node_id=824431


in reply to Revised Basic script help
in thread Basic script help

Find your error log! Mine said this:

malformed header from script. Bad header=Hello World Gavyn J Mickleson

Indeed the first script wrote a header, the second did not.

I second the recommendation of the CGI module and tutorials.