Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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.

Subscriber Reviews

Average Rating: 4.6 out of 5 rating Based on 5 Ratings

"Essential for Coders" - by GrammyPuter on 17-MAR-2010
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This is an essential for programmers like me, to whom a few examples are worth a book of description. My only quibble is that it hasn't been kept up-to-date

Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for Perl Cookbook, Second Edition

  • Catalog Page

Visit the errata page for Perl Cookbook, Second Edition

  • Errata

Download the supplemental electronic content for Perl Cookbook, Second Edition

  • Supplemental Content