If I use the CGI module in Perl, I can do it
$cgi = CGI->new();
$cgi->header(-type=>"text/html");
Or for the classic
print "Content-Type: text/html\r\n\r\n";
Does what we use matter? Is there a difference between the two? Both seem to work.
For me, I would go first if I used CGI in any case, but if not, then I would not bother loading the module in just one action. But just wondering if there is anything on this?
Psi
source
share