Perl Cookbook (COOKBOOKS) and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.

Sign in to turn on 1-Click ordering.
Amazon Prime Free Trial required. Sign up when you check out. Learn More
More Buying Choices
Have one to sell? Sell yours here
Start reading Perl Cookbook (COOKBOOKS) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Perl Cookbook [Paperback]

Tom Christiansen , Nathan Torkington
4.7 out of 5 stars  See all reviews (89 customer reviews)
List Price: CDN$ 77.95
Price: CDN$ 32.92 & FREE Shipping. Details
You Save: CDN$ 45.03 (58%)
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
Only 1 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
Want it delivered Thursday, September 4? Choose One-Day Shipping at checkout.


Amazon Price New from Used from
Kindle Edition CDN $25.10  
Paperback CDN $32.92  
Save Up to 90% on Textbooks
Hit the books in's Textbook Store and save up to 90% on used textbooks and 35% on new textbooks. Learn more.
Join Amazon Student in Canada

Book Description

Aug. 31 2003 0596003137 978-0596003135 Second Edition

Find a Perl programmer, and you'll find a copy of Perl Cookbook nearby. Perl Cookbook is a comprehensive collection of problems, solutions, and practical examples for anyone programming in Perl. The book contains hundreds of rigorously reviewed Perl "recipes" and thousands of examples ranging from brief one-liners to complete applications.The second edition of Perl Cookbook has been fully updated for Perl 5.8, with extensive changes for Unicode support, I/O layers, mod_perl, and new technologies that have emerged since the previous edition of the book. Recipes have been updated to include the latest modules. New recipes have been added to every chapter of the book, and some chapters have almost doubled in size.Covered topic areas include:

  • Manipulating strings, numbers, dates, arrays, and hashes
  • Pattern matching and text substitutions
  • References, data structures, objects, and classes
  • Signals and exceptions
  • Screen addressing, menus, and graphical applications
  • Managing other processes
  • Writing secure scripts
  • Client-server programming
  • Internet applications programming with mail, news, ftp, and telnet
  • CGI and mod_perl programming
  • Web programming
Since its first release in 1998, Perl Cookbook has earned its place in the libraries of serious Perl users of all levels of expertise by providing practical answers, code examples, and mini-tutorials addressing the challenges that programmers face. Now the second edition of this bestselling book is ready to earn its place among the ranks of favorite Perl books as well.Whether you're a novice or veteran Perl programmer, you'll find Perl Cookbook, 2nd Edition to be one of the most useful books on Perl available. Its comfortable discussion style and accurate attention to detail cover just about any topic you'd want to know about. You can get by without having this book in your library, but once you've tried a few of the recipes, you won't want to.

Frequently Bought Together

Perl Cookbook + Programming Perl: Unmatched power for text processing and scripting + Learning Perl
Price For All Three: CDN$ 98.68

Customers Who Bought This Item Also Bought

Product Details

Product Description

From Amazon

When the second edition of Programming Perl was released, the authors omitted two chapters: "Common Tasks with Perl" and "Real Perl Programs." Publisher O'Reilly & Associates soon realized that there would be too many pages in Programming Perl if it put updated recipes in the new edition. Instead, O'Reilly chose to release the many Perl code examples as a separate entity: The Perl Cookbook.

The recipes are well documented and the examples aren't too arcane; even beginners will be able to pick up the lessons taught here. The authors write in relatively easy-to-understand language (for a technical guide). Through this book and its arsenal of recipes, you will learn many new things about Perl to help you through your toughest projects. The next time you're working on a project at 2 a.m., you'll thank yourself for the guidance and direction The Perl Cookbook provides. --Doug Beaver --This text refers to an alternate Paperback edition.

From Library Journal

Perl is probably the language holding together more web sites than any other. It is not the fastest or the most elegant, but it can slurp text as no other language can?and it is free. This is an invaluable book for all levels of Perl programmers, from novice to advanced. It contains great working examples of Perl code to do everything from data structures and string matching to reading files and using libraries to CGI programming and programming Internet applications. Highly recommended for all libraries; serious web collections should consider two copies.
Copyright 1998 Reed Business Information, Inc. --This text refers to an alternate Paperback edition.

Inside This Book (Learn More)
Explore More
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

Most helpful customer reviews
4.0 out of 5 stars Perl Cookbook: Nutritious and Delicious Dec 31 2003
I love Perl. I am almost obsessed with it. I have even left love messages for my wife in the mirror written in the best Perl I can manage. That's not to say that I am a Perl expert--not by any means. I think I shall forever remain a student as there is always more to learn. I am always searching for the latest Perl tidbit and I usually turn first to an O'Reilly book. One of the latest publications to come from O'Reilly on the subject of Perl is the second edition of the Perl Cookbook. Five years have passed since the last edition was published and a lot has changed in that short time span.
For those of you looking to improve your physique without leaving your desk, you'll find hefting this latest edition better suited to the task. It's about 200 pages thicker and about 543 pounds heavier. Okay, so the weight is an exaggeration. There are 80 new recipes (and two new chapters) covering technologies such as Unicode, XML and mod_perl. Even if you own a copy of the first edition, you will find the new recipes and the updated recipes of great value.
For those of you unfamiliar The Perl Cookbook, you will discover a rich treasure trove of excellent solutions to vexing problems. While the Perl Cookbook won't teach you the basics of Perl, beginners can benefit from not having to reinvent the wheel for addressing common tasks such as sorting, traversing, printing or deleting hashes. Advanced Perl Mongers may find the updated discussion on process management, object orientation and module creation enlightening.
Was this review helpful to you?
5.0 out of 5 stars Useful common practices Oct. 3 2003
Already having considerable experience as a professional programmer mostly from system level software, I started out my new job as a database programmer with little to no previous hands-on Perl experience at a company unit where Perl was the commonly used tool for various data collecting and manipulation tasks, which compelled me to learn Perl very rapidly. After digesting the Perl syntax from "Programming Perl", I picked up this book and was instantly able to code a reporting utility by referencing this book whenever I encountered a problem I didn't know the Perl solution for, such as smart ways for processing user input or even rounding floating point numbers.
Eventually I've read this book a few times from cover to cover and learned various common practices that I repeatedly, and successfully, apply in my day-to-day programming tasks, and some of the stuff in this book is even applicable to various other environments.
A recommended read for people who prefer to learn Perl by doing, and you just might add some tricks up your sleeve even if Perl isn't your primary interest.
Was this review helpful to you?
5.0 out of 5 stars Every Perl programmer should have it Nov. 10 2002
In the past, I've had a bad experience with Cookbook-styles. One example would be a "CGI/Perl Cookbook". But this one is nothing like its counterpart.
To be able to follow the cookbook, you're expected to have a basic knowledge of Perl, Perl data structures and IO filehandles. The rest is "in order to get there, do like this, because of that" - style. Very easy to follow, very concise and at the same time informative. What you will appreciate the most of this book is, it doesn't just give you a solution, but it also teaches you the solution.
The book consists of 20 chapters, each chapter dedicated to a distinct subject, such as Strings, Numbers, Dates and Times, Arrays, Hashes, Pattern Matching, File access, File Contends and so on. Each chapter, consists of smaller sections, called "Receipts". Each receipt is dedicated to a solution of one commonly encountered real-life problem.
For example, Receipt 8.6, "Picking a Random Line from a File" introduces the problem , gives a very elegant solution: "rand($.) < 1 && ($line=$_) while <>", and provides a one page exciting description of the algorithm, followed by references.
Although I've been involved in Perl extensively for the last 3 years, I still catch myself skimming through the receipts to compare my solutions to that of the book. Frequently I end up discovering something new and exciting.
The book is definitely of value. Any Perl programmer should have it.
Was this review helpful to you?
1.0 out of 5 stars Highly overrated... Sept. 29 2002
When I first looked at this book, it seemed like a good idea. Perl is sufficiently arcane for there to be lot's of simple solutions that will not be immediately obvious. However, the book has two major faults. It is too thick, and it is too specific.
What I had hoped for was something like "Design Patterns", but for Perl. But instead of trying to generalize, this book tries to list every specific problem that the beginning Perl programmer is likely to meet. For that reason it is unreadable. Any real insight is bound to get hidden in between dozens of trivial tasks. And when you actually meet some problem you think would be a good idea to look up, it is unlikely to be exactly the same as the authors envisioned (why not simply write a library instead?).
With the general incompetence level in the IT-sector during the dot-com bubble, it is possible this book needed to exist, but today it seems like a monument of stupidity, a useless reference that will catch dust forever.
Was this review helpful to you?
5.0 out of 5 stars The book every Perl programmer should own March 19 2002
More books like these should be written for all popular languages. This is by far the most used book for me when I started to learn and program using Win32 Perl. I've not run into any problems with programming in the Win32 environment with this book. The second most used book is "Perl in a Nutshell," also by O'Reilly. But if there's a problem I have, I reach for this book first. 700+ pages packed with solutions and explanations of those solutions to many common problems. Most of the time, you'll find something in there to get you started if it doesn't solve your problem outright. There are whole sections for solving problems with:
Date and Times
Pattern Matching
File Access
File Contents
References and Records
Packages, Libraries and Modules
Classes, Objects and Ties
Database Access
User Interface
Process AManagement and Communication
Internet Services
CGI Programming
Web Automation
That's 20 sections in all! Get the book and stop suffering while looking for answers to your Perl problems. This book easily saved a month's worth of my time during a 4 month project. Plus, it saved me from writing inefficient code simply because I was new to the language and didn't know the tricks that can be used for such a wonderful language.
Was this review helpful to you?
Want to see more reviews on this item?
Most recent customer reviews
5.0 out of 5 stars The missing manual from the Camel Book
Invaluable text that offers quick and varied solutions to the most common perl tasks. I like the variety of solutions; generally the first one they suggest is the one of the ideas... Read more
Published on Feb. 11 2004 by TDrinkrrr
5.0 out of 5 stars Exceptional Book
I consider myself a beginner Perl-hacker. I use Perl to accomplish directly applicable tasks for my work (Logic Designer). I hack as little as needed to get the job done. Read more
Published on Jan. 24 2004 by John A. Kelley
5.0 out of 5 stars A fantastic resource for Perl programmers
This is a first and best of the O'Reilly cookbooks. A few people have told me, "I don't know Perl, I just use the cookbook." It's sad but true. Read more
Published on Dec 13 2003 by Jack D. Herrington
5.0 out of 5 stars Must have
A must have for any Perl programmer. Code snippets for nearly any conceivable scenario. This book can save you time.
Published on Oct. 24 2003
5.0 out of 5 stars So very useful
This book is useful in a 1000 ways.
I go back to it at least 3 times a week.
If you code in PERL, get this book.
Published on Aug. 28 2003 by Eric Kent
4.0 out of 5 stars New Edition Soon.
The Second Edition of the Perl Cookbook will be coming out in two months (August 2003). I always like to know this before buying a book. Read more
Published on June 11 2003 by Customer Person
5.0 out of 5 stars This is an awesome book.
After reading Learning Perl and Perl Programming, if you read this, you'll be 95% set in regards to everything you will need to know to be a genuine professional Perl programmer. Read more
Published on May 10 2003 by Tim Greer
5.0 out of 5 stars The most used book on my shelf
This has to be the most used book on my bookshelf. Even more than programming perl. This book is not for those who are just starting, but is an excellent reference for daily users.
Published on April 9 2003 by Chris Murray
3.0 out of 5 stars Not that Organized
This book has some good tips and techniques, but sometimes very
hard to find. Best if you use it with another perl book say, "Programming Perl".
Published on Dec 15 2002 by ""
Search Customer Reviews
Only search this product's reviews

Look for similar items by category