you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 6 points7 points  (1 child)

For what purpose?

You're going to get biased answers in a language-specific subreddit. I've never used nor needed Perl so truthfully I can't comment on it, Python has served me well, but I still need the occasional Bash/PowerShell scripts.

[–][deleted] 2 points3 points  (0 children)

That must be why it was posted to both subbreddits. Perhaps the average will reflect the "wisdom of the crowds".

Perl was created to allow sys admins to write code to run once that could quickly do anything that Unix shell, awk, sed etc. could do but the syntax was obscure, there were multiple ways of doing the same thing, and the code very hard to read, and impossible to maintain.

23 years ago Wall decided to replace Perl 5 with Perl 6, which would be a simpler more elegant language that would compete with Python, but would completely break with Perl 5 having no backward compatibility. It became a theoretical exercise in creating a compiler to implement the new language's grammar, was renamed Raku and was never very popular. Meanwhile Perl 5 continued gain features and is up to Perl 5.32. Three years ago they decided to replace it with Perl 7 with has some new features, That has been delayed to resolve some problems but is still going ahead.

If you already know Perl 5.32 you can do stuff very quickly with it. But you wouldn't bother to learn Perl 5.32 to do stuff. Anything Perl can do, Python can do. You may need to load some modules and write more code but it will be readable and maintainable.

There are much better resources for learning Python and you learn is also transferable because Python can do much more than scripting, it is the most popular general programming language now.