#!/usr/bin/perl use 5.012; # strict, // use warnings; print "Content-Type: text/plain;\n"; # the missing \n will cause a 500 return code, even though your script has no fatal error, and no die print "Hello World\n";