use CGI; my $cgi = new CGI; #...more stuff not important to this discussion print $cgi->header( -type => 'application/xml'); print '## use CGI; my $cgi = new CGI; #...more stuff not important to this discussion print "Content-Type: application/xml\n". "\n". '