ASPit - Totally ASP
Search PHPit

Use this textbox to search all the content on PHPit. Seperate keywords with a space.

  • Anti Aging Cream
  • Laguna Surf Shop
  • Apartments Frankfurt
  • Telechargement
  • Send Telegram

Writing CGI Applications with Perl

Medium Thumbnail

Book Details

Availability: Usually ships in 24 hours
List Price: $44.99
Our Price: $29.69
You Save: $15.3 (34%)

Buy through

Spotlight Customer Reviews

Average Customer Rating: 4.57

Customer Rating: 5
Summary: Head And Shoulder Above Most CGI Programming Books
Comment: There are a very large number of Perl CGI books in the shops. Unfortunately the number of good Perl CGI books is far smaller. I'm happy to report that this book is one of them.

The problem, of course, with most Perl CGI books is that they are written by people who just don't know very much Perl. That's certainly not the case here. Both Kevin and Brent are well-respected members of the Perl community and they know what they are talking about when it comes to writing CGI programs in Perl.

Another common mistake in Perl CGI books is that the authors try to take people who know a bit of HTML and teach them programming, Perl and CGI all at the same time. The authors of this book realise that this approach is likely to lead to, at best, patchy understanding of any of these concepts so they aim there book at people who are already programmers and who have some knowledge of Perl. This means that they can concentrate of teaching the parts of Perl that are useful when writing CGI programs.

One corner that is often cut when discussing CGI programming is security. This is a very dangerous approach to take as a badly written CGI program can leave your web server open to attack from anyone on the Internet. That's not a mistake that is made here as the authors introduce security in chapter 2. Add to that the fact that the code examples all use -w, use strict and and the book is already head and shoulders above most of its competition.

Early chapters look at common CGI requirements such as file uploads and cookies. Each chapter is full of well written (and well-explained) sample code. The example of an access counter in chapter 6 even locks the file containing the current count - this is possibly a first in a Perl CGI book!

By the middle of the book we have already moved beyond simple CGI programming and are looking at mod_perl. This chapter covers both the "faux-CGI" Apache::Registry module and also writing complete mod_perl handlers.

In the second half of the book we start to look at some bigger examples. The authors present a web-based email system and even a shopping cart. In order to fit these examples into their respective chapters a couple of corners have been cut, but there's enough information there to enable anyone to write the complete systems.

Chapter 13 introduces the HTML::Mason module as a way to separate content from presentation. It's obvious that the author's are big fans of this module and this leads to my only real criticism of the book. At no point do they mention the fact that the same benefits can be gained from using any of half a dozen templating systems found on the CPAN. I would have been a lot happier if they had mentioned things like Text::Template, HTML::Template and the Template Toolkit before picking HTML::Mason as the system for their example.

There are then two more long chapters with examples of a document management system and image manipulation software. Once more the code in these examples would serve as a greating starting point for anyone wanting to implement something along these lines. The last chapter looks at XML and, in particular, the use of RSS files to provide data feeds to other web sites.

All in all this is a very useful book for someone wanting to write web-based applications using Perl. It's packed full of good advice and code that follows all of the best practices for writing CGI programs in Perl. This book won't teach you Perl, but if you've read Learning Perl or Elements of Programming with Perl then you'll find this book easy enough to follow.

Customer Rating: 5
Summary: Effective and Unique
Comment: What a pleasure to find a book that succeeds in what it sets out to do. I wanted to improve my ability to write CGI applications with Perl and came away from this book with mission accomplished. As a bonus, the book contains uses for Perl I suspect many people don't know about.

The book uses a variety of methods to make its points--- interactive exercises, cut-and-paste code, extensive documentation, conceptual development, and plain English explanations and descriptions. Each chapter covers a CGI application. Concepts from one section become the foundation for practical, must-know applications covered elsewhere. Information is presented in logical order; chapter 4 doesn't expect you to know code from chapter 7. Truly valuable is the book's focus on "why it works" as well as the "how to do it." The "why" promotes a grasp of how to use a script or technique in other contexts. If you feel something special about that "oh yea, I get it" feeling, I think this book is for you.

I call the book unique because I haven't seen another with the variety of instructional methods, the "building-block" style, or the combination of practical skills with underlying knowledge.

In sum, the authors wrote an excellent book that I recommend to any serious Perl programmer or web designer.

Customer Rating: 2
Summary: Not a good introduction to CGI
Comment: I bought this book because the Amazon reviewers loved it so much. I got about 150 pages into it and now I need to buy a different book. This book is good for people who really really like to learn by rote. The authors cover interesting and important topics, but they don't explain them well. They don't even try to outline the purpose of a script before coding it. They also introduce functions that are new to the reader somewhere in the middle of a script. They never write, "This is function x. It can be used like this... Here is an example...."

They just start coding without any introduction except for some stupid jokes.

That said, if you already know a buttload of Perl and DBI and CGI programming, you might like this book for the examples.

Also, there were way too many errors in the text and the code, and that makes it even harder to learn.