Final Thoughts
June 14, 1999
Clearly, these pages have not been constructed with an
eye towards maximum aesthetics ... and you can imagine
that building a page with lots of fancy HTML from a CGI
script can be quite a complicated proposition.
Next time, among other goodies, we'll look at using
Perl and CGI to construct web sites based on "templates"
-- where pre-built portions of the page can be
quickly applied to on-the-fly results pages such as we've seen in
this article. Templates offer the great advantage of
"bottling" a nifty HTML design and only generating
the changed portions of the page with the Perl script.
Live Examples:
Cookies
Build a Pizza
Additional Resources
"Exploring CGI with Perl" by Lincoln
Stein (author of CGI.pm Perl module)
Specifically, scroll down to the section titled "Saving
State with CGI.pm"
Andy's HTTP Cookie Notes
Netscape's Introduction to Cookies
The CGI.pm home page describes
the
format for setting an expiration date as well as
additional information on
setting cookies in general.
Perl
Building a Pizza: Updating the Order
The Perl You Need to Know
|