FWIW I've used both Perl and Python professionally and Python rules.
FWIW I've used both Perl and Python professionally and Python rules.
Nokogiri is hands-down the best tool for dealing with XML that there is.
I have much the same experience with Python and anything significant developed in Python here ends up getting rewritten in Go.
Im not directly in the software industry though, just writing programs for data analysis in quality and safety programs. I'm sure once you can think directly in something like Go, it'd be faster to write that program first. But it decreases the cognitive load for me.
We have a bunch of Python scripts for operations work and it's rare that performance becomes a major concern (...except in/regarding Ansible). Development isn't my team's primary responsibility so this state of things is fine -- our SysEng team can grok Python pretty well, whereas with other languages I wouldn't say this is true.
Maybe Perl 6 fixes these things, but learning it is too far down on my to-do list, where it sits just below Ruby.
If I have a problem that can be solved by looping through the lines of a text file and applying some combination of regular expression matching and substitution, the split and join functions, simple arrays and hash tables, I reach for Perl 5.
The reason I personally left Perl was the extremely hostile community. When someone asked a simple question, not only would they get an overhaul and namecalling, but so would anyone that tried to help them.
Python seemed to do a much better job at onboarding new people. To me, that seems like the most important reason they won in the long run.
FWIW perl6 takes extra special effort to be nice.
I don't have links handy, but there were official blog posts and such about how they endeavored to fix the problem. Of course I'm not saying it was universal, nor trying to take away from the fact that there are a lot of great people in the Perl community (PerlMonks is a good example)
They did fix it, as far as I can tell anyway, but it was too little too late.
Did it? Not used Perl for a while but I never needed to worry about backward compatibility and versions with CPAN, while I find I do with Python (to be fair I am programming more complex stuff than I did in my Perl days).
This gave me flashbacks to installing some perl module and watching it download half of CPAN.