use CGI qw/:standard/; print header; ... #### print header( 'text/plain' );