The Perl Cookbook
, ISBN 0-596-00313-7, is a book containing solutions to common short tasks in Perl. Each chapter covers a particular topic area ("Strings", "Ties, Objects, and Classes", "CGI") and is divided into around a dozen recipes
each on a particular problem ("Reversing A String By Word Or Character", "Accessing Overridden Methods", "Managing Cookies"). Each recipe has four parts: "Problem", "Solution", "Discussion", and "See Also".
The Perl Cookbook is written by Tom Christiansen and Nathan Torkington, and published by O'Reilly
O'Reilly Media is an American media company established by Tim O'Reilly that publishes books and Web sites and produces conferences on computer technology topics...
. The Perl Cookbook inspired the PLEAC (Programming Language Examples Alike Cookbook) website, which translated the code snippets in the Perl Cookbook into other languages: Python
Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Python claims to "[combine] remarkable power with very clear syntax", and its standard library is large and comprehensive...
Ruby is a dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features. Ruby originated in Japan during the mid-1990s and was first developed and designed by Yukihiro "Matz" Matsumoto...
GNU Guile is an interpreter/virtual machine for the Scheme programming language. It was first released in 1993. Guile includes modularized extensions for POSIX system calls, APL array functionality, and others packaged as an object library...
Tcl is a scripting language created by John Ousterhout. Originally "born out of frustration", according to the author, with programmers devising their own languages intended to be embedded into applications, Tcl gained acceptance on its own...
Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities...
, and beyond. O'Reilly went on to publish other Cookbooks inspired by the Perl Cookbook's format, including Java Cookbook, Python Cookbook, CSS Cookbook, and PHP Cookbook.
Some related books are Learning Perl
Learning Perl, also known as the llama book, is a tutorial book for the Perl programming language, and is published by O'Reilly. It was authored solely by Randal L. Schwartz in its first edition . The second edition was coauthored with Tom Christiansen and the third edition was coauthored with...
and Advanced Perl Programming
This book has two completely different editions by different authors, but from the same publisher.The first edition of Advanced Perl Programming is by Sriram Srinivasan and covers complex techniques needed in production level Perl...
The Perl Cookbook
has been referred to as "the definitive Perl book", "the ultimate Perl Grabbag", and "an essential book for the advanced development of Perl skills".
- First edition (1998; 794 pages; ISBN 1-56592-243-3)
- Second edition (2003; 964 pages; ISBN 0-596-00313-7)