Sending Text to the Web Browser
Sending Text to the Web Browser
-
Because the CGI script must also respond
to the client using HTTP, there
is also one other required line of code in a CGI script.
-
This is the printing of the HTTP response header.
-
In most cases, you will tell the web browser that you are going to be sending
back HTML code using the standard line:
print "Content-type: text/html\n\n";
However you may also be sending back an image
The
First Line of a Perl Script
Table of Contents
Printing with Perl
|