#!/path/to/perl -w print "Content-type: text/text\n\n"; #or text/html, whatever print "Hello, world!\n";