tags:

views:

152

answers:

7

I started learning Perl a couple of months back.

  • The first stage was learning how to do things differently in Perl. Initially I always had the C mindset of doing things and would translate them to Perl code.

  • Then, mainly through some questions here on SO, I learned about a variety of different techniques that Perl offers for the tasks that I want to do.

  • Now, the situation is that I am able to think in Perl, but only as much as I know from reading about on the internet or what some of you have suggested in the answers to my questions.

I think I need a good book here, so that I at least know all about what Perl has to offer, the different ways of doing things. Sometimes it is after I have written some code that I figure out there was a lot better way to do the same thing in Perl, but I was just not aware of it.

I know about this thread that suggests some books, but I am not sure which one would be the best for me.

  • I need a book that can show me different ways of doing some simple tasks in Perl and explain why and which ones are better.

  • Also, I want to be able to give it a reading in about 30 hours.

Which one should I go for?

+5  A: 

Given your needs, I would definitely vote for: Programming Perl (i.e., the camel book), with Learning Perl a close second.

Michael Goldshteyn
+1 Affectionately known as the 'camel book'. It's the canonical book on Perl. I learned Perl 15 years ago with that one and it is still the best.
Byron Whitlock
I've updated my answer to add the camel in :) and it was my first Perl book, as well.
Michael Goldshteyn
@Michael Goldshteyn: How would Perl Cookbook compare to the two you mentioned?
Lazer
Also great, but in addition to the two I mention, not in place of them!
Michael Goldshteyn
I am sorry, but I felt that the "Camel book' is *too* verbose and definitely can't be read in 30 hours.
Bart J
A: 

The best is the O'Reilly's CD bookshelf.

rk
Do not link to unauthorized copies of books.
Sinan Ünür
@Sinan Ünür: How come you say "don't do that link" but then rolled back to the unauthorized link that I removed? :-)
drewk
@drewk: he rolled back to the official O'Reilly page, not to the unauthorized link.
Ether
@Ether: OK -- I misread or miss deleted the wrong link. I did not see that he edited it, though the link pointed at the many copies, and deleted the link. Sorry guys...
drewk
+4  A: 

Learning Perl by Randal Schwartz is one of my favorite programming books. It is well written, informative, and not a daunting reference book like Programming Perl.

Chestone
+1 Learning Perl is the cliffnotes to programming perl. Slim, well written and straight to the point.
Byron Whitlock
+1  A: 

I think the best way is to see lots of idiomatic perl code, therefore I highly recommend Perl Cookbook.

frankc
+1  A: 

I am enjoying reading the new version of Effective Perl Programming. It has nice digestible and useful tips for the newer versions of Perl.

drewk
+1  A: 

a second vote for Programming Perl, in particular, the value of reading it from cover to cover. after that, i recommend picking up any of the very recent books that covers the vast number of meaningful changes that have taken place since Progamming Perl was written - in particular, Modern Perl by chromatic

brad clawsie
The Modern Perl draft version is available on git, see instructions here: http://www.modernperlbooks.com/mt/2010/06/modern-perl-the-book-the-draft.html
Joel
+1  A: 

You all have covered the books, just as an addendum then I would like to add that the built-in documentation in Perl is excellent!

I learned Perl by reading perldoc perlintro and from there wrote some basic scripts. perltoc is the table of contents and from there you can go anywhere. It may not be the fastest or most clever, but its all there mostly readable and (perhaps best) always at your fingertips, even if you are programming on you morning train commute, like me.

You may already be past this stage, though even in that case it is a great reference. Maybe this post is more for the completeness of the post for budding future camels.

Joel
You all sound like you know what you are talking about. Joel, are you coming back with the chips, or not? I'm waiting for you. Love you. Love Your Wife.
DarthNoodles
hmmm, should I be looking out my window? Perhaps these are not the droids you're looking for? (Thats the geeky way of asking, do I know you?)
Joel