top | item 32049105

(no title)

mmcclimon | 3 years ago

Perl may or may not be relevant in 2022 (it's certainly relevant to me), but this article does not do a great job at explaining Perl's merits. The example code, in particular, is certainly not what I'd expect to see in a modern Perl shop. They don't use warnings or strict, which the author cites as a benefit of Perl over Python, and which is the bare minimum for maintainable perl these days. The examples also use CGI.pm, which was removed from the core Perl distribution as of perl 5.22, which was released in June 2015! (Nowadays you'd use a framework for that; there are lots to choose from.)

Many of the things the author cites are good about Perl are, in fact, good about Perl. But if you're writing new software in 2022, you should probably pick a language with a future, and that language is probably not Perl.

discuss

order

gaws|3 years ago

> you should probably pick a language with a future, and that language is probably not Perl.

A combination of Bash (sed, awk, grep) and Python (string manipulation) eliminates any need for Perl.

calvinmorrison|3 years ago

Perl certainly suffers under 'TMTOWTDI' with libraries. Go to CPAN, ask a friend, hit stackoverflow, you're gonna find something, but like with PHP, there's probably a bunch of libraries you shouldn't be using or have been superseded

sshine|3 years ago

> you should probably pick a language with a future, and that language is probably not Perl.

Perl may not have a future, but being the language in which you can summon Cthulhu with the fewest characters, it has an eternal, undying past.