use CGI qw(header); print header(-type=>'text/plain'); print header(-type=>'test/plain'); __END__ OUTPUT: Content-type: text/plain; charset=ISO-8859-1 Content-type: test/plain