Official Guide to Programming with CGI.pm
May I borrow this?
CGI.pm, a Perl library for writing CGI scripts, delivers elegant solutions for using and updating Web forms. The author, Lincoln Stein, realized the need for a clean and simple way to manage forms and--as a columnist for the
Perl Journal
, a scientist at Cold Spring Harbor Laboratory, and a Web-based software author--created that solution. He's (refreshingly) humble about this creative process, explaining that it took him a few steps until he realized the key to this HTML/Perl hybrid: simplicity.
The CGI.pm standard allows the site manager to separate data from its HTML markup for use in CGI forms. For example, all the elements in a short drop-down menu of vegetables can be placed in one array, changing this:
peas
broccoli
cabbage
pardtx560tx1120tx1680tx2240tx2800tx3360tx3920tx4480tx5040tx5600tx6160tx6720sa240qlqnatural
cf0 to this:
li(['peas','broccoli,'cabbage'])
to be used later throughout a Perl script.
The
Official Guide to Programming with CGI.pm
is geared toward a reader who is familar enough with Perl to have used modules and knowledgeable about HTML and Web-site design. Stein uses CGI.pm for tables, drop-down menus, guest books, single-page or multipart forms, image maps, and cookies. The author of both the book and Perl library function, Stein provides ample discussion of all of these areas, along with strong code examples. The book ends with a verbose reference guide detailing all of CGI.pm's functions and features, grouped both alphabetically and by topic.
The use of CGI.pm requires a mind shift for Web site managers, but it's one worth making. Instead of tags for 'input' and 'select', CGI.pm uses statements such as "checkbox ()" and "textfield ()," allowing documents to be read easily and updated quickly.
--Jennifer Buckendorff
uuid: |
3CD80039-EA55-473F-B509-F2ADA7435891 |
upc: |
9780471247449 |
title: |
Official Guide to Programming with CGI.pm |
signed: |
1 |
purchase date: |
06-05-2005 |
publisher: |
Wiley |
published: |
03-04-1998 |
price: |
$42.95 |
pages: |
320 |
net Rating: |
4 |
last lookup time: |
137112832 |
genre: |
Web Site Design
Networks
CGI Programming
Perl |
fullTitle: |
Official Guide to Programming with CGI.pm |
currentValue: |
$17.79 |
created: |
137112832 |
country: |
us |
author: |
Lincoln Stein |
aspect: |
Paperback |
asin: |
0471247448
|