Printing from a Perl CGI program to a web page requires the first printed output to be:
In some scripts there are several paths to first output and it would be helpful to detect if the Content type has already been output, so redundant Content types could be avoided. Is there a way to detect it?
Thanks,
G
Code:
print "Content-type: text/html\n\n";
In some scripts there are several paths to first output and it would be helpful to detect if the Content type has already been output, so redundant Content types could be avoided. Is there a way to detect it?
Thanks,
G