But at no point do you output anything to the stdout except here: > print "Content-type: text/html\n"; > print "\n"; So the result, in fact, should be just an empty page...