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