News for hackers. Stuff that matters.
Re:Perl, the first postmodern computer language (1999) by cutler on Wednesday May 04, 2022 @05:52PM (#31266335)
I don't understand why Python is touted as some kind of replacement for Perl when there are many things Perl does better and faster. Python isn't even optimised for one-liners so how can it be compared with Perl?
Re:Perl, the first postmodern computer language (1999) by collyw on Thursday May 05, 2022 @04:08AM (#31270825)
I moved from Perl to Python around 2011, mainly for Django.

Perl is a more expressive, "cleverer" language. But I noticed when I moved to Python that I write better code. Too often in Perl I would try something clever and terse, then two days later it would bite me in the bum and cause more problems than it solved.

I would still pull out Perl for some quick bash replacement type script, regular expressions are so much nicer in Perl, but for larger scale long term projects where maintenance is important, I would go for Python.