#!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n"; #### HTTP/1.1 200 OK Date: Thu, 15 Dec 2011 14:42:52 GMT Server: Apache/2.2.3 (CentOS) Connection: close Transfer-Encoding: chunked Content-Type: text/plain --------- HTTP Content Content-type: text/html Hello, world! ---------- HTTP Content