All webservers behave differently. Using Perl under IIS, if you don't print out the content-type you end up with a
CGI Error
The CGI script didn't return a complete set of HTTP headers.
So to be safe, adding a content type will make sure that the script will run under various webservers.
- Tom