3 ms·
Perl is by far the most 'fun' language I've ever programmed. Once you get familiar with a lot of the idioms, it is extremely powerful, and the amount of process
by hiram112 7y ago
Perl is by far the most 'fun' language I've ever programmed. Once you get familiar with a lot of the idioms, it is extremely powerful, and the amount of processing you can do in a line or two of perl would take 10 lines in Java and 20 in C. And 15 years ago, these were the languages it was competing against.
That being said, I rarely use it anymore, and the reason is that once you stop using it daily, you quickly forget all the quirks of its syntax and its powerful idioms, and often I can't even read it without having to Google for help. And that is why it is dying - there are too many ways to do things.
Compare this with Python, which I've never really used as a day to day language, but every few months have to deal with some smaller project written in Python. I can jump in and get work done immediately because there are so few ways to do things. It is mostly just iterating through dictionaries, whereas Perl pushes you to think of everything as a regex or text.
- tzs 7y ago> Perl is by far the most 'fun' language I've ever programmed. Once you get familiar with a lot of the idioms, it is extremely powerful, and the amount of processing you can do in a line or two of perl would take 10 lines in Java and 20 in C. And 15 years ago, these were the languages it was competing against. On top of that, if you found some exception or special case later that you needed to add support for...it was usually just a quick tweak to the Perl program, but often half a rewrite in Java or C. This meant (and still means in a lot of cases) that when you need to do processing on data whose format is not well specified and so you expect to not get it right until a few iterations, doing it in Perl can often be a lot faster than most other languages.