HELP! * GREY=local LOCAL HTML version of Foils prepared 18 March 97

Foil 6 Example CGI program in Perl for Hello, World!

From Introduction to CGI Programming CPS616 Spring 97 -- Spring Semester 97. by Nancy J. McCracken * Critical Information in IMAGE
Addon
The Perl program returns output which is properly formatted HTML. The server returns it to the browser, which displays it as a page.
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.



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Apr 29 1997