Review:Perl in a Nutshell 35
Perl in a Nutshell | |
author | Ellen Siever, Stephen Spainhour, Nathan Patwardhan |
pages | |
publisher | O'Reilly & Associates |
rating | 10 |
reviewer | Andrew Gardner |
ISBN | |
summary | ood reference for the Perl monger, a good way for the experienced programmer to start getting work done in Perl |
Here's The Scenario
It is every nerd's righteous duty to learn to hack in Perl. And not just hack, but obfuscate, and do it well. Its a prerequisite for database interfaces, CGI, and system administration, and engineers use Perl all the time. So, figuring it was time to establish my Official Nerd status and get some work done, I set out for the book store. After wading through the piles of books on prognostications about the future of the internet and the 17 volume How to Use AOL series, I found Perl in a Nutshell. I'd done a little Perl before (certainly nothing that would qualify me as a hacker), but I've spent enough time in front of a computer staring into an Emacs buffer full of Verilog to feel like an experienced geek. I didn't want my hand held, and I didn't want a book aimed at the "Netscape for Idiots" crowd. I just wanted to start doing stuff in Perl.
What you get
Just as the subtitle states, this is A Desktop Quick Reference. Right from the start, the assumption is that you are going to do something of value very quicky with the knowledge that you are acquiring. Accompanying the exhaustive list of functions, the description of the goals and functionality of each module keeps the book narrowly focused on what Perl can do for you, and what you can be doing with Perl right now. A significant portion of the book is devoted to the most popular modules available on CPAN, which greatly expands the scope of things you can do with this book. The descriptions of the entire broad spectrum of Perl that the book covers are all written in the same style. A quick introduction develops the purpose of the module, and then its straight into the function reference. There is very little fooling around here, and that's the best reason to buy this book.A brief list of the most useful topics:
- Basic language reference (reserved words and standard modules)
- CGI and mod_perl
- Database interfaces
- Sockets and network programming
- Perl/Tk
Should you buy this book?
Perl in a Nutshell is a perfect book for its market. If you're an inexperienced programmer, or you have no use for Perl, this book will do nothing for you.
If you want to get started in Perl, the authors suggest Programming Perl, which is the definitive work on the subject. That really is the place to start. If, however, you have the Camel or the Llama or the Ram, then the Camel head, as the preface names it, might just be a welcome addition to your Perl library.
So What's In It For Me?
You don't get tons of code. And it's short on philosophy. You get a reference, and you get what you paid for. So, when you're desperate to get it to work, or you've got a couple of hours to pull something out of thin air, this is the book you want on your desk because it is truly a complete reference.
Purchase this book over at Amazon.
Table of Contents
- Introduction to Perl
- Installing Perl
- The Perl Interpreter
- The Perl Language
- Function Reference
- Debugging
- Packages, Modules, and Objects
- Standard Modules
- CGI Overview
- The CGI.pm Module
- Web Server Programming with mod_perl
- Databases and Perl
- Sockets
- Email Connectivity
- Usenet News
- FTP
- The LWP Library
- Perl/TK
- Win32 Modules and Extensions
- PerlScript
Useful, but not required (Score:4)
You must mistake me for somebody else... (Score:1)
I AM self-taught, my friend. Been teaching myself languages ever since I was five. School hasn't taught me jack about computers, and I'm not one of those inexperienced college preps that thinks a degree will solve everything.
And bad code? Yeah, I learned off of Matt Wright's scripts. Now that's some sloppy code. Took me some time to correct the mistakes of his code, but it was a learning experience.
--
Brendan Byrd AKA SineSwiper
Computer techie, PERL master, and all-purpose Internet guru
Bah! I don't need books! (Score:2)
I have two guides:
man perl
perldoc -f whatever
You don't need to buy five different $30 books. The time start reading books to learn computer languages is the time I stop learning computer languages. Just look through some example code like the rest of us!
--
Brendan Byrd AKA SineSwiper
Computer techie, PERL master, and all-purpose Internet guru
Beware: ratings incomparable (Score:2)
--
Man is most nearly himself when he achieves the seriousness of a child at play.
Re:Hmmmm... (Score:1)
No, that's what the Palm version is for
That and the backlight for reading under the covers...
perl -e 'print scalar reverse q(\)-:
Re:Hmmmm... (Score:1)
perldoc -f functionname
perldoc -riX any_word
perldoc -q faq_word
perl -e 'print scalar reverse q(\)-:
Hmmmm... (Score:3)
perl -e 'print scalar reverse q(\)-:
Re:Cheaper at Bookpool (Score:1)
Great prices, though. Can't argue with that!
Shelves? We don' need no steenkin' shelves! (Score:1)
More real programmer bullshit (Score:1)
Generally written in a rush just to get the job done. Yeah, a fucking great way of learning a language. Having had to learn way too many badly written systems from the code (``we don't have any documentation here, man'') I can honestly say thank god for books like Stevens `Advanced Programming
Anyways, I bet you had a college education in computer science. Try being self-taught sometime, and then you'll know the pain of learning from limited sources.
Chris Wareham
Re:bah (Score:1)
Actually, I did start with "Learning Perl" way back when I started to hack CGI scripts. Then, moved on to "Programming Perl" and "Mastering Regex". Of course, I had to buy the "COOKBOOK" and now the NUTSHELL. Some of you may think I'm crazy but it's not that bad. First of all, I buy my books from BOOKPOOL [bookpool.com] (I don't work for them) where O'Reilly books are 35% to 45% off list price. Then, all the books I buy are tax-deductible (I have an online business) so I save another 40%. So, if a book costs $100, I'm really only paying $36!!!
(Ok, ok, so I'm addicted to O'Reilly books...I admit it...)
Re: Sig.... (Score:1)
instead of:
perl -e 'print scalar reverse q(\)-:
try:
perl -e 'print scalar reverse q(\)-:
-----------
Resume [iren.net]
Re:Hmmmm... (Score:1)
Re:bookpool (Score:1)
I still like Amazon with its user reviews, etc, but I use fatbrain.com too. Prefer to give my business to the sites that are the most useful to me. But then, I don't buy that many books. Except O'Reillys of course.
Learning Perl (Score:1)
So I got Learning Perl. That, and the downloadable Perl reference, and the Programming Perl, are about all I need (except I also got Perl/Tk so I could do GUI stuff).
The book on a programming language I liked best was Kernigan and Richie's book on C. It really was a very straightforward book - not much fluff, but starting from the ground up. I really like a linear style in my books, and I find the "post modernist" (if that's what it is) approach to learning can be a little confusing.
Re:Shelves? We don' need no steenkin' shelves! (Score:1)
from the left side of my keyboard.
My First Perl Book (Score:2)
_________
flashcommerce.com [flashcommerce.com]
Sitting right next to it (Score:2)
Re:My First Perl Book (Score:1)
Likewise, I bought it not knowing a thing about perl and a couple of months later I have just written a DB backed messageboard thing (much like
--
Re:Barnes & Noble and this book (Score:1)
Umm, Perl in a nutshell is about 600 pages, and costs about $25. Maybe you are thinking of the desktop quick reference (or something).
--
bah (Score:1)
then get programming perl and the cookbook. and then the desktop reference... and then mastering regular expressions.....
and then you become a total geek!!!
--
hellraiser ( @linuxfreak.com || @nac.net )
awk 'BEGIN { printf "Just another %s hacker\n", ARGV[0] }'
Re: Sig.... (Score:1)
perl -e 'print scalar reverse qw(\)-: hacker Perl another Just)'
I tried to read Perl In A Nutshell... (Score:4)
Re:Bah! I don't need books! (Score:1)
I've learned alot through looking through code, but reading some books helps too. What you don't get from looking at somone's code is an explanation of what does what and why as you go. I like to know the theory as well as the execution. No sample code will teach you theory.
Doc's can but they are harder on the eyes for me at least. Sometimes I need to step away from the monitor and a book is a good way to keep learning about it without having to be in front of the monitor.
Re:Useful, but not required (Score:2)
Cheaper at Bookpool (Score:1)
Perl Reference Books (Score:1)
Perl in a Nutshell is a good reference book. I use it more now than I use the blue camel book, just for convenience, but sometimes I need the more complete details that are in the camel book. This is not a "must have" book. It's just another one.
The book that I found the most useful at explaining tricks and new features in perl 5, was Effective Perl Programming by Joseph Hall. There is some excellent treatment of esoterics in perl in that book. This is not really a very good intro to perl book, but it's a great book.
I found Learning Perl to be a quick pleasant read. I recommend this to everyone who has NO perl experience, just because, like the K&R C book, you can read it in a day. It's easy to follow.
The Perl Cookbook is a nice resource to have for finding alternative approaches to solving problems in perl.
I don't consider the Advanced Perl Programming book to be a must have, but it's useful for finding some details on perl data structures and OO.
The boxed set is a waste of paper.
I don't personally use the regexp book, because I don't feel that I need it...I'm told by some friends that I'm wrong. Whatever.
I personally feel that any perl book which is thicker than my dictionary (like those learn perl in 24 minutes books) just has to be a complete waste of money. This is based on no experience and is totally my own opinion.
I've never opened an idiots guide, dummy's guide, utter flaming moron's guide, etc to perl, so I can't speak about any of those either, but...well, you can guess what I think.
-- Owner of the Virginia license plate "PERL HKR"
(which doesn't mean I am one, just that I paid money so I could claim it...