|
|
|
|
|
by throwaway7645
3112 days ago
|
|
This gets asked a fair amount on r/perl and on here. In short, because it's still a great language with yearly releases and a large library ecosystem (CPAN). It's built in to Linux and works really well there (although Python is as well), but also you can generally run 20 year old perl code in a 5.26 distribution of Perl without much issue. Performance is really good too. I'd say it's harder to learn than Python if you had to pick one, but if you're already good with Perl, there's really not a reason to go to Python unless you need to do numerical work (numpy/scypy) or data work (Pandas & Matplotlib). Perl has 3 good web frameworks. The language's base OO support is pretty sparse, but the Moose module on CPAN allows Perl to become supercharged with very advanced OO capabilities and the Moo module is a lightweight version of Moose that is a lower performance hit. Perl is much better than Python or Ruby for shell one-liners to do quick and dirty work as it has a lot of things built in to help there (see book Perl Oneliners). They spent 15 years designing Perl6 which is not the next language, but a new sister language that still has some work in the performance department, but is a very nice language. As a python guy, I would switch to Perl6 in a heartbeat if it were as fast as Perl5. A lot of things from Perl6 were backported to Perl5. All in all, y not choose it? It has a lot of neat developer tools as well. |
|
Perl has libraries for numerical/science stuff too. :)
http://pdl.perl.org
http://search.cpan.org/dist/Math-GSL
http://bioperl.org
Those are some of the major ones. Being Perl, of course there's more.