Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Perl Books Media Programming Book Reviews

Review:Perl in a Nutshell 35

Andrew Gardner has reviewed a book that I'm sure sits on many shelves: Perl in a Nutshell. Designed to be your desktop reference, Ellen Siever, Stephen Spainhour, and Nathan Patwardhan have produced a multi-use tool. Click below for the review.
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
The introduction to Perl in the first four chapters is sufficient for the experienced coder, and the function reference makes it simple to jumpstart projects in Perl. Unlike some technical books whose indices and tables of contents are as nondescript as physically possible, Perl in a Nutshell actually has a useful index and table of contents that makes it rather simple to find what you're looking for.

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

  1. Introduction to Perl
  2. Installing Perl
  3. The Perl Interpreter
  4. The Perl Language
  5. Function Reference
  6. Debugging
  7. Packages, Modules, and Objects
  8. Standard Modules
  9. CGI Overview
  10. The CGI.pm Module
  11. Web Server Programming with mod_perl
  12. Databases and Perl
  13. Sockets
  14. Email Connectivity
  15. Usenet News
  16. FTP
  17. The LWP Library
  18. Perl/TK
  19. Win32 Modules and Extensions
  20. PerlScript
This discussion has been archived. No new comments can be posted.

Review:Perl in a Nutshell

Comments Filter:
  • by Anonymous Coward on Tuesday May 11, 1999 @04:37AM (#1897070)
    Still to this day, all you need is Programming Perl. Nonetheless, having a good digest is useful if for nothing more than brushing up on your fundamentals now and then.
  • Posted by Brendan Byrd/SineSwiper:

    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
  • Posted by Brendan Byrd/SineSwiper:

    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
  • I just wanted to point out that each book review is done by a different person, with a different idea of what they want in a book, what qualifies as a '10', etc. As others have pointed out, the reviewer doesn't really talk about using this book and the standard Perl docs together. As far as introductory Perl books go, IMHO the most important aspect is how well scalar/list context is explained. In all other prog. langs that I can think of, whatever is inside the parens is not affected by whats outside. I don't know how well this book explains this, however.
    --
    Man is most nearly himself when he achieves the seriousness of a child at play.
  • What the perldocs dont have is that fancy camel cover and they are not something you can comfortably read while at the bathroom and such.

    No, that's what the Palm version is for :)

    That and the backlight for reading under the covers...


    perl -e 'print scalar reverse q(\)-: ,hacker Perl another Just)'
  • Yes, they do:

    perldoc -f functionname
    perldoc -riX any_word
    perldoc -q faq_word

    perl -e 'print scalar reverse q(\)-: ,hacker Perl another Just)'
  • by Matts ( 1628 ) on Tuesday May 11, 1999 @04:44AM (#1897076) Homepage
    I remain unconvinced. Tell me how this compares to my 2 current perl references - the Palm pilot Perl Quick Reference (great for quick searches, and keeping a current position), and perldoc. Definitely perldoc is your friend, and I don't know why more people don't use it. Does this book offer that much more than the standard perl docs?

    perl -e 'print scalar reverse q(\)-: ,hacker Perl another Just)'
  • They ship out of Martha's Vineyard. It takes a really long time; my order boards the ferry steamer, crosses Nantucket sound, on a horse to Boston, Perl Cookbook arrives 10 days later. Who's idea was this anyway? Couldn't they have built on the North Slope and saved a couple days?

    Great prices, though. Can't argue with that!
  • a book that I'm sure sits on many shelves: Perl in a Nutshell.
    Sits on shelves? Heck, I use it too much for it to ever get put on a shelf!
  • ``Just look through some example code ...''

    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 ...' and its ilk.

    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
  • Ya callin' me a geek?

    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...)

  • I don't believe that sig means what you think it means.

    instead of:
    perl -e 'print scalar reverse q(\)-: ,hacker Perl another Just)'

    try:
    perl -e 'print scalar reverse q(\)-: ,rekcah lreP rehtona tsuJ ) ';
    -----------
    Resume [iren.net]
  • The docs don't have a nice index that can find a function if you don't already know what you're looking for though... --Danny, who likes his books
  • I didn't know about bookpool... yep they even have slightly lower prices than buybooks.com.

    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.
  • I got the book Programming Perl - it is a great book, but not really a good place to start. It is rather like if you didn't know how to play poker, and someone starts to explain it "so black eyed jacks are wild." Before you get started, you need some context, and a gentle tutorial.

    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.
  • Agreed. My copy rarely exceeds 6"
    from the left side of my keyboard.
  • Perl in a Nutshell was my first Perl purchase. It helped me quickly go up the learning curve with Perl. I did find that some areas were just too terse to be useful as an initial learning book. It is the first book that I reach for when I need Perl information.
    _________
    flashcommerce.com [flashcommerce.com]
  • I find that for looking something up FAST then the Camel Head is fine, but if I need all the gritty details there's still no substitute for the full Camel. They both have their purpose.
  • Perl in a Nutshell was my first Perl purchase.

    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 /. but strangely different, and less boxy). If you have experience with C and learn best through jumping in off the deep end, or have godd perl knowledge and want a reference book, this is for you.

    --
  • The guy behind the counter saw that this small, thin book was $8

    Umm, Perl in a nutshell is about 600 pages, and costs about $25. Maybe you are thinking of the desktop quick reference (or something).

    --
  • get learning perl, it's WAY better...
    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] }'
  • or maybe
    perl -e 'print scalar reverse qw(\)-: hacker Perl another Just)'
  • ...but it was too dark in there.
  • Sometimes example code isn't enough. And what if your not in front of your computer? Me I prefer books because I can take them with me anywhere. And the Palm documentation..i'd rather buy a $30.00 book and a $300.00 Palm just to have some documentation.

    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.
  • I mostly agree, but Programming Perl has too many words and pages to flip. Perl in a nutshell is faster to find stuff.
  • Maybe Rob looses the kickback from Amazon (if so, sorry Rob!) But truck on over to bookpool [bookpool.com] and you can find it for $16.50 vs. Amazon's $19.96. Bookpool [bookpool.com] is cheaper for most geek books. Still not as cheap as perldoc -f, but if yer gonna buy it...
  • Where to begin? I liked the first printing of the pink camel book better than later pink printings or any of the blue ones...but of course, it's not very relevant any more. I find the blue camel book to be completely readable, and if you are only going to buy one perl book, this is still the one to have.

    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... ;-)

Top Ten Things Overheard At The ANSI C Draft Committee Meetings: (1) Gee, I wish we hadn't backed down on 'noalias'.

Working...