Perl Cookbook: Solutions and Examples for Perl Programmers

Perl Cookbook: Solutions and Examples for Perl Programmers by Nathan Torkington and Tom Christiansen

Perl Cookbook: Solutions and Examples for Perl Programmers

Binding:
Paperback
Number of Pages:
976
ISBN:
0596003137
Product Group:
book
Publisher:
O'Reilly Media
Publication Date:
Aug. 21, 2003
BooksForGeeks.com ID:
1355

'Perl Cookbook' collects together hundreds of problems and their solutions (with examples) for anyone programming in Perl. Topics range from beginners questions to techniques for more experienced programmers.

Reviews for Perl Cookbook: Solutions and Examples for Perl Programmers

  1. The best book on Perl

    Rated 5 out of 5 stars, March 12st, 2009

    You'd be forgiven for assuming this book to be an inessential extra for hardcore geeks who just can't get enough of this most geeky of programming languages. However, you'd be wrong: so clearly is it written, so sensibly is it structured, that you could virtually learn Perl from this book alone.

    Each chapter focusses on a clearly circumscribed area of syntax (numbers, arrays, pattern matching, modules, etc.), offering a series of "recipes" starting from real basics and going up to more complex tasks. The miracle of this book is that you can home in on whatever information you want within seconds, often without even thinking about it.

    There's none of the verbosity or laboured attempts at humour of "Programming Perl": every word here is written with one aim in mind, namely to help you understand the language.
  2. Doesn't encourage good Perl practice

    Rated 4 out of 5 stars, August 12st, 2008

    The biggest problem with this book is that none of the examples work when using the warnings flag and the "strict" pragma... if you leave these out when writing Perl, you can very quickly tie yourself in knots trying to work out why your variables are colliding with each other. So, you can either take the lazy approach and leave out warnings and strict (and pay the cost later when you're dealing with a few hundred lines of code), or you can battle away trying to turn their examples into good Perl code that works.

    The other problem with this book is... well, the fact that it's a book. This kind of example-heavy manual lends itself far better to an online format, from which example code can be copied & pasted.

    Those gripes aside, this is a manual I come back to again and again (although I invested in the CD-based Perl Bookshelf from O'Reilly, which includes this book). The format is excellent, the index is a little weak, but it's generally easy to find what you're looking for. The examples are well explained and I particularly like the way in which multiple solutions are presented for each problem, reflecting the very essence of Perl.

    This book is not for beginners though (hint: read the top line of the front cover); for that I recommend you read "Learning Perl" or, better still, get yourself on a beginner course.
  3. Perl Cookbook

    Rated 5 out of 5 stars, September 12th, 2007

    This book is an essential collection of code snippets that can be used as a guide when coding applications. In my opinion this book along with Learning Perl are the 2 essential books to have on your desk if you are doing serious stuff with perl
  4. Evergreen classic

    Rated 5 out of 5 stars, July 12th, 2007

    Once you've learnt the syntax of a language, you want to learn the idioms, and how it's used most effectively. And given Perl's famous 'There's More The One Way To Do It' motto, you'll need all the help you can get. Perl Cookbook is that help.

    Neither a reference nor a tutorial, if you've ever read another cookbook, you'll know what to expect -- after all, this is the daddy of them all. Themed chapters, consisting of short tasks that most people will find handy e.g. trimming white space from a string, or populating a hash. What makes Perl Cookbook so valuable is not just finding out how to do it, but finding out what the most efficient and idiomatic way to do it is. This is where you'll see the Perl way of doing things in action, and it's an immensely valuable learning experience, even if you never need to do exactly any of the things in the book.

    For me, the most vital material is the earliest stuff, which takes you through how to use the string, array and hash, the guts of any Perl program. The final half of the book explores Perl's libraries for the use of databases, and a lot of network and web-related stuff, from simple socket programming, to CGI, and the use of mod_perl.

    This is a cornucopia of Perl lore, firmly established in the Perl Canon, and deservedly so. You want it on your bookshelf if you want to really call yourself a Perl programmer.
  5. Not what I had in mind

    Rated 1 out of 5 stars, January 12th, 2004

    Being a Perl beginner, this book is too hard for me, things I knew and learned I found out on the net.

    This Book is maybe a must have for people who's work is writing perl applications all day... For me, writing little programs to process text, this book is too hard...

    You also need to have unix/linux background.

    Maybe I should have bought a beginners book, but I saw the 5 stars and read some reviews the book was very good...

    I only recommend this book to advaced programmers.

Our Network

BooksForGeeks.com is a participant in the Amazon Europe S.à r.l. Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.co.uk