Official Guide to Programming with CGI.pm
| |||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||
| Sort customer reviews by: | |||||||||||||||||||||||||||||
|
Show All Reviews on Page
Hide All Reviews on Page
| |||||||||||||||||||||||||||||
| Official Guide to Programming with CGI.pm | |||||||||||||||||||||||||||||
|
A complete guide to creating interactive Web pages using the Perl CGI.pm library from its creator.
Official Guide to Programming with CGI.pm contains all the information about CGI.pm found in Perl's online manual, but in a completely reorganized and greatly expanded format. It also includes valuable labor-saving tips and hints you won't find anywhere else. Featuring step-by-step instructions and complete source code, it shows you how to: * Download, install, and configure CGI.pm * Generate HTML documents on the fly * Process fill-out forms and create multipage documents * Perform script debugging and state maintenance * Design interactive clickable image maps * Store and process cookies * Attach JavaScript and cascading style sheets to your documents * Write state-maintaining scripts * Modify and extend CGI.pm * Tap the Comprehensive Perl Archive Network (CPAN). Visit the companion Web site at www.wiley.com/compbooks/stein On the Web site you'll find: * The most recent and all future revisions to the CGI.pm module * All the source code examples from the book * Online documentation for CGI.pm * Links to CPAN and other Web-related software written by the author. Visit our Web site at www.wiley.com/compbooks/ |
|||||||||||||||||||||||||||||
|
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:
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 |
|||||||||||||||||||||||||||||
| Reader Reviews 1 - 12 of 12 | |||||||||||||||||||||||||||||
| Review Date |
Review Rating(5 High) |
Review Helpful to: |
Customer Review | Reviewer Info |
Permanent Link |
||||||||||||||||||||||||
| Reader Reviews Below Sorted by Newest First | |||||||||||||||||||||||||||||
| 05-21-06 | 5 | (NA) |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
This is one of my favorite computer books of all time. I enjoyed it as a way to learn to use the CGI perl module, several years ago, and I use it from time to time now as a reference. The author presented his material with a fair amount of humor, especially in the examples, and with great clarity. Of all the perl modules out there, I probably use CGI.pm more than any other, with DBI.pm coming in a close second. So, if you're planning on using perl to generate web pages, this book will be very useful. While learning to use the CGI.pm I also read two other books and this book by Lincoln Stein was the most useful and informative of the ones I read.
(Review Data Last Updated: 2008-08-17 06:21:15 EST)
|
|||||||||||||||||||||||||||||
| 01-09-06 | 3 | (NA) |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
I gave up on this book after 185 pages. Admittedly, I learned a lot about using Lincoln Stein's CGI module using this book, but it was not always easy. On the upside most of his explanations are clear. However the examples are replete with errors and the typography used for the code listings make it easy to introduce new errors.
(Review Data Last Updated: 2007-07-06 16:52:33 EST)
|
|||||||||||||||||||||||||||||
| 05-19-04 | 5 | 1\1 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
The author has done a wonderful job of explaining how to use the CGIpm module. If you understand the basics of perl, you should be able to go through the bulk of this book. And with just a slight acquaintance with Perl references and anonmous list, you'll be surprised how quick and easy this is to master. This book puts other CGI books to shame because other books shy away from discussing all the cool functions in CGI.pm.
(Review Data Last Updated: 2007-07-06 16:52:33 EST)
|
|||||||||||||||||||||||||||||
| 01-01-04 | 5 | (NA) |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
This book helped me make the transition to object oriented perl. Oh yeah, and it's filled with all the CGI you'll need. Thank you Lincoln Stein!!
(Review Data Last Updated: 2007-07-06 16:52:33 EST)
|
|||||||||||||||||||||||||||||
| 05-07-03 | 4 | 4\4 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
I must confess that I could do virtually none of the programming that I do without Lincoln's fine work, but it's sometimes frustrating with so many broken examples.
Once you figure out the syntax, you'll be OK. There's a lot of easy-to-find reference. Make sure you test very small sections of code on their own and insert it into your programs when you get it working. Then refer to your working programs (copy & paste) when you make others. (Review Data Last Updated: 2007-07-06 16:52:33 EST)
|
|||||||||||||||||||||||||||||
| 05-06-03 | 4 | 4\4 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
I must confess that I could do virtually none of the programming that I do without Lincoln's fine work, but it's sometimes frustrating with so many broken examples.
Once you figure out the syntax, you'll be OK. There's a lot of easy-to-find reference. Make sure you test very small sections of code on their own and insert it into your programs when you get it working. Then refer to your working programs (copy & paste) when you make others. (Review Data Last Updated: 2006-06-19 13:25:19 EST)
|
|||||||||||||||||||||||||||||
| 04-25-03 | 5 | 2\2 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
The Offical Guide to Programming with CGI is an introductory level text covering Lincoln Stein's CGI.pm module. CGI.pm is the standard perl module for working with CGI. CGI (Common Gateway Interface) is the standard interface by which external programs can interace with web servers. The text assumes the reader has at least a beginner's knowledge of Perl and HTML. For instance, readers are assumed to know how to use modules, but no prior knowledge of object oriented perl is required. Likewise, the reader should have a passing familiarity with HTML tags, forms in particular. This book is particularly beginner friendly.
The reader should be able to walk away from the book with the ability to create simple websites which take and respond to user input. The potential CGI.pm programmer will gain a fundamental knowledge of the module, its interface, and how it may be used to generate HTML. The text also includes a very detailed reference guide which may appeal to those people who prefer to hold what they're reading. While the book was published back in 1998, it hasn't become outdated. It is pleasantly surprising that CGI.pm's interface has changed so little. Support for new standards like XHTML have been added since the book was originally published, but have had little net effect on the use of CGI.pm itself. Why CGI? Isn't that the way people used to write dynamic web pages? Yes. And where portability concerns outweigh performance, it still is. Also, if you're a relative novice or don't have an endless supply of round tuits, CGI programming may present the lowest barrier of entry into dynamic web programming. Even if you later move on to one of the newer templating systems a fundamental knowledge of CGI.pm and how it works will still be useful. Not to mention that some of the templating systems for instance HTML::Mason will run on top of CGI, even though most are primarily designed to work with Apache and mod_perl. For those who would appreciate a short description of what mod_perl is, it basically puts a copy of Perl inside the Apache executable making powerful hooks available to perl scripts and avoiding the overhead of executing a separate process for each CGI script. The author of the book, Lincoln Stein, is also the author of the module itself. In the book, Stein takes the reader through a gradual progression of scenarios and solutions. The explanations are thorough and the pace gradually takes the reader into more advanced topics. In short, it is a concise introduction to CGI programming with Perl. Low level details, like how CGI works under the hood and more advanced topics like security, cascading style sheets, javascript, and persistence are touched upon but not covered in particular depth. The author does however provide many timely references to books and websites where the reader can find more information on those topics. (Review Data Last Updated: 2007-07-06 16:52:33 EST)
|
|||||||||||||||||||||||||||||
| 04-25-03 | 5 | 1\1 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
Who better to write a book on the CGI.pm module than the author of the module himself. I must admit that I was afraid that the book wouldn't be intelligible given the fact that many brilliant programmers aren't necessarily gifted writers, but he pulled it off very well!
A basic knowledge of Perl is helpful in getting the most out of this book. I would strongly recommend reading at least the first few chapters of "Learning Perl" for people without any other programming skills, or the first few chapters of "Programming Perl" for those coming to Perl from another language. I found that using this book in conjunction with "MySQL and Perl for the Web" gave me a great experience. Even though the latter book sounds like it is aimed more at the DB end, it has a couple good chapters on getting up and running with Perl/CGI and mod_perl. Was also quite thankful that Lincoln covered both the traditional and Object-Oriented interfaces to the module. Great Book! (Review Data Last Updated: 2007-07-06 16:52:33 EST)
|
|||||||||||||||||||||||||||||
| 04-24-03 | 5 | 2\2 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
The Offical Guide to Programming with CGI is an introductory level text covering Lincoln Stein's CGI.pm module. CGI.pm is the standard perl module for working with CGI. CGI (Common Gateway Interface) is the standard interface by which external programs can interace with web servers. The text assumes the reader has at least a beginner's knowledge of Perl and HTML. For instance, readers are assumed to know how to use modules, but no prior knowledge of object oriented perl is required. Likewise, the reader should have a passing familiarity with HTML tags, forms in particular. This book is particularly beginner friendly.
The reader should be able to walk away from the book with the ability to create simple websites which take and respond to user input. The potential CGI.pm programmer will gain a fundamental knowledge of the module, its interface, and how it may be used to generate HTML. The text also includes a very detailed reference guide which may appeal to those people who prefer to hold what they're reading. While the book was published back in 1998, it hasn't become outdated. It is pleasantly surprising that CGI.pm's interface has changed so little. Support for new standards like XHTML have been added since the book was originally published, but have had little net effect on the use of CGI.pm itself. Why CGI? Isn't that the way people used to write dynamic web pages? Yes. And where portability concerns outweigh performance, it still is. Also, if you're a relative novice or don't have an endless supply of round tuits, CGI programming may present the lowest barrier of entry into dynamic web programming. Even if you later move on to one of the newer templating systems a fundamental knowledge of CGI.pm and how it works will still be useful. Not to mention that some of the templating systems for instance HTML::Mason will run on top of CGI, even though most are primarily designed to work with Apache and mod_perl. For those who would appreciate a short description of what mod_perl is, it basically puts a copy of Perl inside the Apache executable making powerful hooks available to perl scripts and avoiding the overhead of executing a separate process for each CGI script. The author of the book, Lincoln Stein, is also the author of the module itself. In the book, Stein takes the reader through a gradual progression of scenarios and solutions. The explanations are thorough and the pace gradually takes the reader into more advanced topics. In short, it is a concise introduction to CGI programming with Perl. Low level details, like how CGI works under the hood and more advanced topics like security, cascading style sheets, javascript, and persistence are touched upon but not covered in particular depth. The author does however provide many timely references to books and websites where the reader can find more information on those topics. (Review Data Last Updated: 2006-06-19 13:25:19 EST)
|
|||||||||||||||||||||||||||||
| 12-31-01 | 2 | 2\4 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
I've bought this book basically not to burn my eyes reading man pages from the screen. The text itself is good and is exactly what the title tells you - a printed user's manual to (most) popular Perl module.
Now I have to ask: how on earth can a book be designed as poorly as that? Whoever the designer is, I'd strongly recommed him(her?) to buy "The Form of the Book" by Jan Tchicold (hope I spelled it correctly). (Review Data Last Updated: 2006-06-19 13:25:19 EST)
|
|||||||||||||||||||||||||||||
| 02-26-01 | 5 | 2\4 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
This book is an excellent concise guide for covering nearly all issues of CGI programming with Perl. Since Perl has been very popular for CGI programming, there are tons of resources out there on the web and lots of books about this topic but you will all start with
use CGI; Learn it from it's CREATOR and OFFICIAL guide covering topics from multipage applications to extending CGI classes to meet you needs. (Review Data Last Updated: 2006-06-19 13:25:19 EST)
|
|||||||||||||||||||||||||||||
| 02-21-01 | 4 | 5\5 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
If you write CGI scripts in perl and are not taking advantage of cgi.pm, then you're doing things the hard way. Written to take the tedium out of scripting, the module allows you to use easy to remember shortcuts to code some of the more difficult things in perl. Cookie setting and retrival is a snap, as is allowing users to upload files, and more. For advanced programmers, the object oriented method is supported and also very easy to use.
The book is easy to follow and contains some illustrative examples that are also available on a companion website. My one and only complaint is the price of the book: it seems a little steep given that most of the material in there is available on the web in one form or another for free. If you don't want to take the time printing and compiling, then this is an excellent manual that will soon sport bookmarks and highlights throughout. (Review Data Last Updated: 2006-06-19 13:25:19 EST)
|
|||||||||||||||||||||||||||||
| Reader Reviews 1 - 12 of 12 | |||||||||||||||||||||||||||||
| All Books | Arts | Biography | Click Here For An A-Z Index Of All 213 Best-Seller Subjects | Business | Children's | Comics | ||||||
| Computers | Cooking | Engineering | Entertainment | Health | History | Home | Horror | Humor | Law | Fiction | Medicine | Mystery |
| Nonfiction | Outdoors | Parenting | Professional | Reference | Religion | Romance | Science | Sci-Fi | Sports | Teens | Travel | |