1 | The Perl program returns output which is properly formatted HTML. The server returns it to the browser, which displays it as a page. |
2 | Returning the html output is pretty simple as the server and browser handle the encoding and decoding of the MIME formatted message. The complications arise from sending text from the form to the CGI program; there are several ways to do it and the CGI program must decode the message. |