Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
75 used & new from $2.00

Have one to sell? Sell yours here
 
   
CGI Programming with Perl
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

CGI Programming with Perl (Paperback)

by Gunther Birznieks (Author), Scott Guelich (Author), Shishir Gundavaram (Author)
3.4 out of 5 stars See all reviews (33 customer reviews)

List Price: $34.95
Price: $23.07 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $11.88 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Monday, July 20? Choose One-Day Shipping at checkout. Details
37 new from $3.69 38 used from $2.00
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Best Value

Buy CGI Programming with Perl and get Programming the Perl DBI at an additional 5% off Amazon.com's everyday low price.

CGI Programming with Perl + Programming the Perl DBI
Buy Together Today: $44.99

Show availability and shipping details

  • This item: CGI Programming with Perl

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • Programming the Perl DBI

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Perl Cookbook, Second Edition

Perl Cookbook, Second Edition

by Tom Christiansen
4.7 out of 5 stars (113)  $32.97
Learning Perl, 5th Edition

Learning Perl, 5th Edition

by Randal Schwartz
4.2 out of 5 stars (296)  $26.39
Writing CGI Applications with Perl

Writing CGI Applications with Perl

by Kevin Meltzer
4.4 out of 5 stars (16)  $32.09
Programming Perl (3rd Edition)

Programming Perl (3rd Edition)

by Larry Wall
4.0 out of 5 stars (111)  $32.97
Intermediate Perl

Intermediate Perl

by Randal L. Schwartz
4.5 out of 5 stars (10)  $26.39
Explore similar items

Editorial Reviews

Amazon.com Review
The appearance of the second edition of CGI Programming with Perl heralds the beginning of the neoclassical era of Web service. CGI--or common gateway interface--is the original back end for client-driven, dynamic Web-page service and deserves consideration as the Romulus of the Internet Empire. But, where first-edition author Gundavaram described the lonely Romulus laying the brick foundation of dynamic Web-page service in 1996, second-edition collaborators Guelich and Birznieks have pitched in to resurrect Romulus amid the crowded streets of modern Rome. Why bother? Surely four years have brought technological revolutions (Java, PHP, ASP, ColdFusion) that render CGI's original brick-by-brick approach as obsolete as, say, Roman mythology--or bricks and mortar.

And yet not. It is an ambiguous blessing that the original CGI persists, adhering to the underside of Web service by the duct tape that is Perl. This point is not missed by Guelich, Gundavaram, and Birznieks, whose advocacy of CGI is both bolstered by the growing applications module base of Perl and tempered by their awareness of CGI's structural limitations. Both new and returning readers of CGI Programming with Perl should browse the last chapter first in order to appreciate the proposed solutions to CGI's greatest sin: its impractical slowness in a world of a million-hits-per-day Web service. The chapter describes CGI-compatible FastCGI and mod_perl technologies that circumvent the process-spawning slowness of the simple CGI. Advanced users might want to skip directly to O'Reilly's fine mod_perl tome, Writing Apache Modules with Perl and C, by Lincoln Stein and Doug MacEachern.

The authors' second pass at CGI pedagogy is a lucid, honest, and expanded account that develops functionality of dynamic Web pages in a rational progression--from HTML client-server and CGI syntax basics to general input/output, forms, e-mail, graphics, and simple database applications, including maintaining client state and data persistence under the otherwise stateless HTTP protocol. The authors offer synopses of cookies, JavaScripting, server security, and XML, all of which are described in detail in other books.

Whether or not neoclassical CGI is fast enough for your purposes--perhaps for guarded intranets--bear in mind that CGI is the standard to which every other Web server has had to respond. The second edition of CGI Programming with Perl is still the best introduction to the classics. --Peter Leopold

Product Description
The Common Gateway Interface (CGI) is one of the most powerful methods of providing dynamic content on the Web. CGI is a generic interface for calling external programs to crunch numbers, query databases, generate customized graphics, or perform any other server-side task. CGI programs can be written in any programming language, but Perl is by far the most popular language for CGI. CGI programmers appreciate Perl's text manipulation features and its CGI.pm module, which gives an well-integrated object-oriented interface to practically all CGI-related tasks. Based on the best-selling CGI Programming on the World Wide Web, this edition has been completely rewritten to demonstrate current techniques available with the CGI.pm module and the latest versions of Perl. Topics include incorporating JavaScript for form validation, controlling browser caching, making CGI scripts secure in Perl, working with databases, creating simple search engines, maintaining state between multiple sessions, generating graphics dynamically, and improving performance of CGI scripts.

See all Editorial Reviews


Product Details

  • Paperback: 451 pages
  • Publisher: O'Reilly Media, Inc.; 2 edition (January 15, 2000)
  • Language: English
  • ISBN-10: 1565924193
  • ISBN-13: 978-1565924192
  • Product Dimensions: 9.3 x 7 x 1.3 inches
  • Shipping Weight: 1.5 pounds (View shipping rates and policies)
  • Average Customer Review: 3.4 out of 5 stars See all reviews (33 customer reviews)
  • Amazon.com Sales Rank: #361,133 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #4 in  Books > Computers & Internet > Programming > Languages & Tools > CGI Programming

Look Inside This Book

Citations (learn more)
1 book cites this book:

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(5)
(4)
(2)
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

33 Reviews
5 star:
 (10)
4 star:
 (7)
3 star:
 (6)
2 star:
 (5)
1 star:
 (5)
 
 
 
 
 
Average Customer Review
3.4 out of 5 stars (33 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
29 of 29 people found the following review helpful:
4.0 out of 5 stars What's different about this book?, November 19, 2001
By "sherzodr" (East Lansing, MI USA) - See all my reviews
While there're a few boooks available on CGI/Perl, what's different in this book you'd ask. If we compare it with "CGI Programming 101" by Jaqueline, it's more advanced and excersices better programming style. Uses 'strict' pragma and -wT switches ALL THE TIME, which I liked a lot. The programs are also compatible in mod_perl enviroment, which prove the fluency of the authors in Perl and Web Programming. Unfortunately their those capabilities don't make them good writers. They don't spend enough time on some of the concepts they introduce. They sepend more time and space then requried on JavaScript(chapter 7), which is about 23 pages, and spend only 16 pages on Data Persistence (chapter 10). But in Data Persistence chapter they tried to cover Text files, all kinds of file lockings, temporary files, DB_File, MLDBM, SQL, DBI. Now you have a rough picture of how dEtAiLeD their topisc are. Here I'll try go over chapters with comments and will be suggesting alternatives for the topic wherever it's applicable

Chapter 1, 2 and 3 give some history of the WWW and CGI. Also provide a smaple CGI application for getting started. I think chapter 2, "Hypertext Transfer Protocol" was pretty informative, and I ejoyed it a lot.

Chapter 4, "Forms and CGI" go over some form anatomy and elementary ways of encoding and decoding form input, which you might find usefull.

Chapter 5 is entirely dedicated to CGI.pm and it's application. I still think CGI.pm's documentation available online (or with your Perl distribution) does way better job than this one chapter.

Chapter 6, "HTML Templates" gives some nice examples of HTML::Template and Embperl usage. They spend good space on these, but only about 3 pages to cover Mason. Of course, the chapter can't take you too far without the original documentations of those mentioned libraries which are available online.

Chapter 7, as I mentioned was dedicated to JavaScript and JS validation. I think they were not supposed to spend so much time on JavaScript. For this one, go get JavaScript Bible, 4th edition by Danny Goodman.

Chapter 8, Security covers the security guidelines already available online as W3C's security FAQ by L. Stein and John Stewart.

Chapter 9, "Sending Email" was probably my favorite. It covers 'sendmai', mailx and mail and procmail. Spends good 18 pages on the topic and shows an examile that uses Mail::Mailer

Chapter 11, Maintaining State, was really poor. There's nothing much to learn in that chapter. For more profesional session management examples, I suggest you "MySQL and Perl for the Web" by Paul DeBois and Apache::Session manual available online.

Chapter 12, "Searching the web" give some advanced examples of web searching. The example of Inverted Index Search using DB_File was my favorite.

Chapter 13, "Creating Graphics on the fly" give some examples of dynamic graphic generation using GD, Image::Magick and GD::Graph. I could give this chapter hmmm... 3 stars :)

Chapter 14, "Middleware and XML" was the one I just skipped over.

The last 3 chapters of the book are dedicated to debugging, coding with style and eficiency with mod_perl and FastCGI.
For debugging and style, I recommend "Programming perl 3rd edition".

Overall, i benefitted from the book a lot as it implies from my review. But still wanna save my 5 stars for the 3rd edition :)

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
28 of 31 people found the following review helpful:
1.0 out of 5 stars Rush job and it shows, July 25, 2000
By "jb4mt" (Kearney, NE) - See all my reviews
This book is full of typos, which is forgivable if the code examples don't have typos, but they do. For instance, in the code for upload.cgi on pg 99, the following declaration is made:

use constant UPLOAD_DIR => "/usr/local/apache/data/uploads";

Note this does NOT end with a slash. Later, though, a loop is initialized as follows:

until (sysopen OUTPUT, UPLOAD_DIR . $filename, O_CREAT | O_EXCL)

$filename is taken from user form input, but unless the user was omniscient and put a slash at the beginning of the name he assigned, then the expression "UPLOAD_DIR" . $filename would evaluate to something like:

/usr/local/apache/data/uploadsbleedin_file_name

instead of the correct: ".../uploads/bleedin_file_name". Oh, and speaking of putting a slash at the beginning of the file name....there is code that is supposed to prevent such, as evidenced by the line:

error($q, "Invalid file name; files must start with a letter or number.");

I don't know about slashes, but it didn't prevent me from sending a file name through that begin with a tilde.

Yes the book covers some things you won't find anywhere else, but a lot of the stuff it covers is better covered elsewhere: OReilly's "Webmaster in a NutShell" has better coverage of HTTP. It (Webmaster) also discusses using the use statement to reference a library in a path where you might have had to manually install it in your virtual hosting directory if for instance you couldn't convince your ISP to upgrade to the latest version of CGI.pm. This wasn't covered in the CGI book, which is supposed to be solely about CGI, whereas the Webmaster book not only covers CGI/Perl, but also JavaScript, PHP, etc.

Don't waste your money....I'm sorry I did

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
21 of 23 people found the following review helpful:
3.0 out of 5 stars NOT a "quick and dirty" CGI reference..., August 21, 2000
By H. Lanza (Austin, Texas USA) - See all my reviews
(REAL NAME)   
You must be careful when usign this book. I found myself wasting a lot of time typing (oreilly's ftp site was down, and has been down lately--what can I say?) and implementing the examples in the book only to get to the end of the chapters to find out that the authors were holding out on me for a better solution. For example: Parsing forms? Don't implement anything on Chapter 4, "Decoding Form Input." Wait until the next chapter about CGI.pm. Searching the web server (Chapter 12)? Wait until the end of the chapter before implementing anything, or waste alot of time.

Don't get me wrong, this book has some decent information in it. And there is much learning to be done in reviewing how NOT to do certain things. However, I'm not sure how many people read CGI books from cover to cover.

Bottom line: the authors should have been more mindful of their audience's time constraints and should have tailored the exposition of material accordingly.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

2.0 out of 5 stars Write an outline before you start writing a book
Fairly good content, but hideously organized. The book jumps all over the place and really lacks the coherence I've come to expect from O'Reilly books. Read more
Published on October 22, 2006 by J. S. Wegman

4.0 out of 5 stars Great in it's day
When the first edition came out, it was an atypical O'Reilly book; they were known for publishing guides for working programmers, but this was more of an introduction to a topic... Read more
Published on August 27, 2006 by D. Jackson

1.0 out of 5 stars Strike one for O'Reilly
I was sorely disappointed that I purchased this book. I own just about every O'Reilly book on Perl there is and I grabbed this one off the shelf based on my past experience with... Read more
Published on April 14, 2005 by Matthew Brooks

4.0 out of 5 stars After the errata, then what . . .
I've got the July 2000 printing and was amazed at the errata and the errata items yet to be "confirmed"! Read more
Published on September 27, 2003 by Peter Boatman

4.0 out of 5 stars A good place to start
I purchased "CGI Programming with Perl" thinking it was, like many O'Reilly books, a bible of programming how-to for the working programmer. It's not. Read more
Published on July 23, 2003 by Michael J Edelman

3.0 out of 5 stars Okay, but not much there.
This is an okay book, but there's not much there. If you already know Perl and a little about CGI, there's not much to be had from this book. Read more
Published on May 10, 2003 by Tim Greer

2.0 out of 5 stars No new information, not complete
This book pales in comparison to Learning Perl and Programming Perl, which are both essential books to read before you can even attempt to understand the examples in CGI... Read more
Published on September 18, 2002

5.0 out of 5 stars This is the Bible for CGI programming in Perl
Anyone who wants to know about CGI programming should buy this book. Even beginning programmers can learn from this book. A must have.
Published on July 20, 2002

4.0 out of 5 stars Well Written and Concise Book
This book is excellent for any wanna-be CGI programmer with previous knowledge of Perl. It gives step by step lessons that will not only present you with information and ideas,... Read more
Published on May 12, 2002 by IM J. Callahan

2.0 out of 5 stars Dont know Perl dont buy this book
I bought this book because i wanted to proccess Credit Cards on my website through CGI Scripting but when i got it i was dissapointed because it requires you to know Perl... Read more
Published on April 6, 2002 by Dren

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
  Discussion Replies Latest Post
C# or Java? 32 10 days ago
   


Product Information from the Amapedia Community

Beta (What's this?)


So You'd Like to...


Look for Similar Items by Category


Free Songs, Cheap Albums
Special MP3 Deals
Visit our Special Deals Store to find ultra-low prices on great albums, daily deals, and over 500 free songs.

Shop now

 

Big Savings in Books

Bargain Books
Find great titles at fantastic prices in our Bargain Books Store.
 

By the Light of a Reading Lamp

Shop for Book Lights and Reading Lamps
Illuminate the page, not the room, with a compact, lightweight book light or reading lamp from the Lighting & Electrical Store.

Find the right reading light

 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates