#!/usr/bin/perl use CGI; use CGI::Carp qw(fatalsToBrowser set_message); $CGI::HEADERS_ONCE = 1; BEGIN { sub carp_error { my $message = shift; error( $message ); } CGI::Carp::set_message( \&carp_error ); } my $q = new CGI; # time passes print $q->header( 'text/html' ); print "test"; exit; sub error{ # die nicely exit; }
In reply to Re: Why is the browser displaying a content header?
by ercparker
in thread Why is the browser displaying a content header?
by wfsp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |