3 ms·
> ... many great Perl book authors ... Would you mind listing a few of these? I would add "Modern Perl" by chromatic: https://pragprog.com/titles/swperl/moder
by marttt 4y ago
> ... many great Perl book authors ...
Would you mind listing a few of these?
I would add "Modern Perl" by chromatic: https://pragprog.com/titles/swperl/modern-perl-fourth-edition/ https://pragprog.com/titles/swperl/modern-perl-fourth-editio...
With lots of elegant examples, this book really shows that perl is not a write-only language.
- chungus 4y agoDamian Conway's book Perl Best Practices. And here's the reason why I thought of it: at a previous job where we were stuck with a million lines of less-than-optimal perl code, and the original developers who only knew perl, we had to make a decision. Rewrite it in a more gentle language that suited our new developers too, or try to write better perl. Initially we went with better perl, we used a linter called perl critic that would refer you to specific sections of Damian Conway's book Perl Best Practices. We managed to write very nice code that pleased all the new FP enthousiasts present, and were able to onboard non perl developers (incl. myself) fairly easily. It didn't work out though. The problem? Our original perl developers were unable to work with our "flashy" new perl code. It might as well have been an entirely different language to them. As it often is, this was not a coding problem but a people problem.
- TurboHaskal 4y agoThis one is really good. I no longer work with Perl but it's one of the books that had the most impact on me. There are many things to take away from it no matter the language you code in.
- scrapheap 4y agoI read Damian's Perl Best Practices book for insights into ways to improve my Perl coding, but since then I've found that the principles I picked up from it have significant improved my code in most other languages as well.
- cutler 4y agoSeconded. Anything by The Damian is pure gold including his Vim videos.
- G3rn0ti 4y ago> Would you mind listing a few of these? Sure: I already mentioned Mark Jason Dominus: "Higher-Order Perl" as it is a great introduction of functional programming and goes into all the gory details of how to implement lazy evaluation on top of closures. Damian Conway: "Object Oriented Perl" Comes to my mind as well. It's basically an introduction to object oriented programming so kind of similar in spirit to "Higher-Order Perl". It even talks about implementation techniques of OO protocols. Neat stuff. These books are great even today as they transcend the Perl language. A little outdated but still great to read are: Randal L. Schwartz "Learning Perl" Randal L. Schwartz "Intermediate Perl" Brian D Foy "Mastering Perl" (my personal favorite in this series) if you need to learn Perl 5 today. I personally also liked Tom Christiansen, Nathan Torkington: "Perl Cookbook" which was basically just a large collection of programming solution recipes but usually also contained elaborate discussions on the various pros and cons of the corresponding solutions. I think it was in this book I first learned about the Fisher–Yates shuffle algorithm. Brian D Foy: "Learning Perl 6" is a great book about Raku and is a more recent example of the great heritage of high quality introductory books about programming in the Perl domain.
- submeta 4y agoWonderful books! They had so much wit and were fun to read. I really enjoyed reading those Perl books. Maybe they were in the spirit of the Perl founder, who was/is a linguist and did not just write technical books, but almost technical literature. Haven't seen these kind of in-between-the-line writing in Python-land (or did I miss the good ones?).
- 7thaccount 4y agoI also bought a huge amount of Perl books as they're basically free + postage as the supply is much higher than demand. The best one I've come across so far is from the guy that goes by "Ovid" (Curtis Poe). It had the right amount about the language, environment, package managers, popular libraries...etc. I liked the code as well.
- serallak 4y agoI'd add Network Programming with Perl by Lincoln Stein. Somewhat more specific, and many of the libraries used are dated. But it did provide you with a huge amount of information, from writing simple echo clients with raw sockets up to fully multi process HTTP deamons, in a very accessible way.
- petesergeant 4y agoTo my mind, Perl Medic by Peter Scott is the best book I've ever read on refactoring and working with legacy code
- cafard 4y agoEffective Perl Programming by Hall, McAdams, and foy has come in handy.