Perl Cookbook
Tips and Tricks for Perl Programmers
Publisher: O'Reilly Media
Final Release Date: August 1998
Pages: 800

The Perl Cookbook is a comprehensive collection of problems, solutions, and practical examples for anyone programming in Perl. Topics range from beginner questions to techniques that even the most experienced of Perl programmers will learn from. More than just a collection of tips and tricks, the Perl Cookbook is the long-awaited companion volume to Programming Perl, filled with previously unpublished Perl arcana.

The Perl Cookbook contains thousands upon thousands of examples ranging from brief one-liners to complete applications. Covered topic areas spread across nearly four hundred separate "recipes," including:

  • Manipulation of strings, numbers, dates, arrays, and hashes
  • Reading, writing, and updating text and binary files
  • Pattern matching and text substitutions
  • Subroutines, libraries, and modules
  • References, data structures, objects, and classes
  • Signals and exceptions
  • Accessing text, hashes, and SQL databases
  • Screen addressing, menus, and graphical applications
  • Managing other processes
  • Writing secure scripts
  • Client-server programming
  • Internet applications programming with mail, news, ftp, and telnet

These recipes were rigorously reviewed by scores of the best minds inside and outside Perl, foremost of which was Larry Wall, the creator of Perl himself.

The Perl Cookbook is written by Tom Christiansen, Perl evangelist and coauthor of the bestselling Programming Perl and Learning Perl; and Nathan Torkington, Perl trainer and co-maintainer of the Perl Frequently Asked Questions list.

Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyPerl Cookbook
 
4.4

(based on 12 reviews)

Ratings Distribution

  • 5 Stars

     

    (5)

  • 4 Stars

     

    (7)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviewed by 12 customers

Sort by

Displaying reviews 1-10

Back to top

Previous | Next »

 
5.0

One of the best Perl books

By fdegir

from Stockholm

About Me Designer, Developer

Verified Reviewer

Pros

  • Accurate
  • Concise
  • Easy to understand
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Perl Cookbook:

    This is one of the best Perl books I've ever had. It takes the problem, explains the solution and gives hints about the code itself.

    Must have book.

     
    5.0

    Perl Cookbook Review

    By Wortwart

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    You work with Perl? You need this book - almost daily. It gives you well written explanations of code snippets for your everyday work. Indispensable!

     
    4.0

    Perl Cookbook Review

    By Al Rizo-Patron

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    A clarification to my previous comment: I said tctee.pl does not work for binary files. That is true only for Windows, not Unix. To make it work for Windows, it needs to use the binmode() function on the filehandles. Unix ignores binmode(), and then again, it already has 'tee'. Still, tctee example given can be *very* slow in Windows on binary files because any character picked as a record delimiter could occur literally millions of times. Therefore, the I/O is better done with sysread() and syswrite() with a reasonably sized block size, or something like $blksize = (stat $fh)[11] || 131072;

    (1 of 1 customers found this review helpful)

     
    4.0

    Perl Cookbook Review

    By Al Rizo-Patron

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    Excellent, practical complement to the Camel book.

    One comment though: In example 8.19 Program: tctee (pages 304-306) the author states this "tee" replacement is one of the many venerable Perl programs written nearly a decade ago that still runs perfectly well... But if it ain't broke..."

    Unfortunately, tctee.pl is not a replacement for tee. While tctee.pl handles text files OK, it does not work for binary files, whereas "tee" does.

    It's left as homework for the reader to work a more general solution that does subsume tee.

    In spite of this "nit," this is definitely a book to have handy when you want to solve some practical problem in short order.

     
    4.0

    Perl Cookbook Review

    By Julio

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    Are you hungry for Perl then the CookBook provides the right menu of recipies.

    Small samples of perl programs all over the book to solve particular problems.

    I can always learn from any program example (you can get good Ideas to solve your own problems or maybe if you get lucky your problem solution is on the book) the good ones and the bad ones there is also a lot of information. If you are a novice or advance user you will be able to benefit from this book alike.

    If you can only afford two perl books go for Programming Perl (Cammel Book ) and this one!.

     
    5.0

    Perl Cookbook Review

    By Pete Nelson

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    The Perl Cookbook is the most definative, useful programming book I have ever seen. Very well organized, a quick glance through the table of contents will usually point you to the answer to just about any How do I ... ? question.

    I think the quality and organization of this book is a stunning example of how a good programming reference should be written. I only wish there was something comperable for Java!

    If you use perl at all, this book belongs open on your desk! It will save you hours of digging!

    (1 of 1 customers found this review helpful)

     
    5.0

    Perl Cookbook Review

    By John Powell

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    This is the book that takes you over the (Camel's) hump from "Perl student" to "Perl user". I had read the Camel book, thought I had some clue, but locked up when it came to actually doing something useful. The well documented recipes in this book got me past roadblocks and into the realm of productivity. Without it, I would probably still be wallowing in Excel and a text editor to parse log files.

    I HIGHLY recommend this book to other Perl newbies trying to bridge the gap between knowing the basics and actually doing something with it. This book ROCKS!

     
    4.0

    Perl Cookbook Review

    By Ismo Kallioniemi

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    Quite excellent book. Having read the 'Lama' and 'Camel' this is actually the book that gets it all together. If you learn from examples of code, this is definetally the book you should have.

     
    4.0

    Perl Cookbook Review

    By Michael Turley

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    Re: Previous comment

    Sorry, just remembered that you can 'use lib "/path/to/myperlmods/"' to include Perl modules not installed on your perl installation. Should have read chapter 12 before posting last comment!

     
    4.0

    Perl Cookbook Review

    By Michael Turley

    from Undisclosed

    Comments about oreilly Perl Cookbook:

    Excellent practical book - the only problem I had is that alot of the examples seem to be based on modules which you may not have the rights to install or may make an application less portable. The book is still first-rate though.

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?