Official Guide to Programming with CGI.pm

  Author:    Lincoln Stein, Lincoln Stein
  ISBN:    0471247448
  Sales Rank:    531724
  Published:    1998-04-03
  Publisher:    Wiley
  # Pages:    320
  Binding:    Paperback
  Avg. Rating:    5.0 based on 18 reviews
  Used Offers:    26 from $15.00
  Amazon Price:    $44.99
  (Data above last updated:  2008-08-17 06:17:44 EST)
  
  
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:

  • peas

  • broccoli

  • cabbage
  • 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)
    (Hide Review...)  Straight From The Creator of CGI.pm
    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)
    (Hide Review...)  Disappointing
    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
    (Hide Review...)  Wow, incredible high-level power in this module.
    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)
    (Hide Review...)  Great Book!
    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
    (Hide Review...)  This book is a necessity but the examples don't all work
    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.


    Again, much credit needs to be given to Mr Stein, but Paul DuBois' Book MySql and Perl For The Web explains CGI.pm much better (you'll still need Stein's book if you're going to be serious about CGI) with examples that really,really, work, extreme attention to detail, and incredible organization.

    (Review Data Last Updated: 2007-07-06 16:52:33 EST)
    05-06-03 4 4\4
    (Hide Review...)  This book is a necessity but the examples don't all work
    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.


    Again, much credit needs to be given to Mr Stein, but Paul DuBois' Book MySql and Perl For The Web explains CGI.pm much better (you'll still need Stein's book if you're going to be serious about CGI) with examples that really,really, work, extreme attention to detail, and incredible organization.

    (Review Data Last Updated: 2006-06-19 13:25:19 EST)
    04-25-03 5 2\2
    (Hide Review...)  Still worth reading today
    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
    (Hide Review...)  Excellent choice for anyone who wants to write Perl/CGI
    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
    (Hide Review...)  Still worth reading today
    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
    (Hide Review...)  man pages are designed better
    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
    (Hide Review...)  Tons of CGI Perl books out there? Get this offical one first
    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
    (Hide Review...)  Excellent resource for essential perl module.
    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                 
      
      
      
      
      
      

    Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
    Search VeryWellSaid™
    Google
    Web VeryWellSaid™
    New subjects are added every week.
    View Subjects Below by:
    * Top Selling
     (click category name, left)
    * Top-Rated Top Sellers
     (click 'Top Rated', right)
    In the news...  
    Dubai\UAE Top Rated
    Influenza\Bird Flu Top Rated
    Iraq Top Rated
    Supreme Court Top Rated
    All Books Top Rated
    Arts Top Rated
    Photography Top Rated
    Digital Photography Top Rated
    Digital Cameras Top Rated
    Biography Top Rated
    Business Top Rated
    Management Top Rated
    Marketing Top Rated
    Sales Top Rated
    Stocks Top Rated
    Bonds Top Rated
    Real Estate Top Rated
    Trading Top Rated
    Commodities Trading Top Rated
    Time Management Top Rated
    Starting A Business Top Rated
    Children's Top Rated
    Comics Top Rated
    Computers Top Rated
    PC Top Rated
    Mac Top Rated
    Programming Top Rated
    Design Patterns Top Rated
    .Net Top Rated
    C# Top Rated
    Vb.Net Top Rated
    Asp.Net Top Rated
    Java Top Rated
    Python Top Rated
    PHP Top Rated
    Perl Top Rated
    Javascript Top Rated
    Ajax Top Rated
    CSS Top Rated
    Open Source Top Rated
    SQL Top Rated
    Databases Top Rated
    Oracle Top Rated
    MySql Top Rated
    Sql Server Top Rated
    IIS Top Rated
    Apache Top Rated
    Linux Top Rated
    Windows Server Top Rated
    Project Management Top Rated
    HTML Top Rated
    UML Top Rated
    IT Certifications Top Rated
    Cisco Certifications Top Rated
    MCSE Top Rated
    MCSD Top Rated
    Cooking Top Rated
    Italian Cooking Top Rated
    Vegetarian Cooking Top Rated
    Wine Top Rated
    Engineering Top Rated
    Entertainment Top Rated
    Health Top Rated
    Nutrition Top Rated
    Dieting Top Rated
    Sex Top Rated
    History Top Rated
    Military History Top Rated
    British History Top Rated
    Middle East History Top Rated
    Land Battles Top Rated
    Naval Warfare Top Rated
    Air Warfare Top Rated
    9/11 Top Rated
    Terrorism Top Rated
    Home Top Rated
    Mortgage\Home Equity Loan Top Rated
    Cars Top Rated
    Car Buying Top Rated
    Sports Cars Top Rated
    Cat Top Rated
    Humor Top Rated
    Horror Top Rated
    Law Top Rated
    IP Law Top Rated
    Legal History Top Rated
    Fiction Top Rated
    Oprah's Book Club Top Rated
    Medicine Top Rated
    Cancer Top Rated
    Stroke Top Rated
    Heart Disease Top Rated
    Fertility Top Rated
    Diabetes Top Rated
    Pharmacology Top Rated
    Back Problems Top Rated
    Menopause Top Rated
    Thyroid Top Rated
    Pain Top Rated
    Organic Chemistry Top Rated
    Immune System Top Rated
    Mystery Top Rated
    Nonfiction Top Rated
    Outdoors Top Rated
    Running Top Rated
    Radio Control Models Top Rated
    Guns Top Rated
    Parenting Top Rated
    Divorce Top Rated
    Professional Top Rated
    Reference Top Rated
    Religion Top Rated
    Romance Top Rated
    Science Top Rated
    Physics Top Rated
    Chemistry Top Rated
    Astronomy Top Rated
    Psychology Top Rated
    Science Fiction Top Rated
    Sports Top Rated
    Teens Top Rated
    Travel Top Rated
    USA Top Rated
    Europe Top Rated
    France Top Rated
    Italy Top Rated
    England Top Rated
    China Top Rated
    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
    In Association with Amazon.com

    Cache miss
    (not cached)