Earlier quoted context omitted.
The "Learning Perl" book from O'Reilly is the best book to do this (and imho is one of the best written programming books).
Learning Perl is a classic of the form---the best intro programming book that I've ever seen, at least for smart readers who've done some kind of programming (any kind, with any language) in the past. The contrast to Learning Python is noteworthy. The latter book is useful, too, but it's about ten times bigger and much less focused on introducing a language.
Not Your Grandfather’s Perl
181–190 of 257 posts
Re: Not Your Grandfather’s Perl
#182I've used Perl off and on throughout my career, even working at one job that was pretty much exclusively Perl. I've also used Java and C/C++. I've done a lot of work with embedded systems where C was the order of the day. But back to Perl. I always thought one of the best things about Perl was CPAN. I could nearly always find a module that would accomplish a specific task I needed and then I was just left to write th…
CPAN is indeed alive and kicking; https://metacpan.org/
Re: Not Your Grandfather’s Perl
#183Earlier quoted context omitted.
I would argue that ruby as almost all the strengths of perl and conciseness with more coherency if you want a perl-like fluidity and terseness. I personally like python for anything that becomes more than a 100 lines of bash.
Due to poor coding practices (eg monkeypatching) and a weaker testing culture (by default Ruby does not run unit tests when installing libraries) I've found Ruby to be substantially less reliable than Perl. However the world has moved on to Python. So I curse every time I again have to look up how subprocess works for what I'd do in Perl with backticks.
Re: Not Your Grandfather’s Perl
#184With function signatures and state variables added in 5.010, I consider Perl feature-complete and have not really missed anything from it for as long as I've been writing Perl. What I do appreciate that's missing from many other languages and systems is the extreme committment to backwards compatibility. The knowledge that the next minor release won't break existing scripts is underrated, IMO. Solo project with ~23K…
Signatures were added in 5.020, and [edited:] were considered experimental until 5.036.
Re: Not Your Grandfather’s Perl
#185I've used Perl off and on throughout my career, even working at one job that was pretty much exclusively Perl. I've also used Java and C/C++. I've done a lot of work with embedded systems where C was the order of the day. But back to Perl. I always thought one of the best things about Perl was CPAN. I could nearly always find a module that would accomplish a specific task I needed and then I was just left to write th…
> I'm surprised CPAN is not mentioned. I wonder if it is still active. CPAN is indeed alive and kicking; https://metacpan.org/
Re: Not Your Grandfather’s Perl
#186When I was about 20, I went to the local Barnes and Noble to find a book about programming. Picked up the O'Reilly Javascript book from around 2000. Had no idea what javascript was, just wanted to learn how to program and trying to pick the most popular language. $40 later, I got home and started reading! Very confusing, the first half of the book covered the language runtime (I think?) and the second half covered th…
Re: Not Your Grandfather’s Perl
#187"Bare bones" seems to be a good thing for Perl. I use Strawberry Perl on Windows and it is orders of magnitude faster than Powershell for processing large files of text strings using regular expressions. I hope the addition of a "new object-oriented programming framework" won't take away the "bare-bones" speed of the current release.
Re: Not Your Grandfather’s Perl
#188Earlier quoted context omitted.
The best OO frameworks Mouse and cperl make it faster. Moose, Moo and Corinna signicantly slower. Guess which frameworks are recommended
Corinna is essentially the working spec of the new class system in Perl. I’m not sure being performant was ever the goal.
Re: Not Your Grandfather’s Perl
#189I wish there was a callout to Modern::Perl; use Modern::Perl; and you get the lot of those features.
use common::sense
Which is also quite nice, giving slightly more opinionated defaults.
Re: Not Your Grandfather’s Perl
#190I wonder if this is how you end up being a Perl user in 2022.
[1] https://www.joelonsoftware.com/2000/04/06/things-you-should-...