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


in reply to Malformed Header?

#!perl -w use strict; print "Content-type: text/plain\n\n"; print "test\n";
make sure there's a newline after the print statement.