<i>Perl is for legacy people and legacy code.</i><p>Well, so is everything else.  The "state of the art" is about 30 years behind the newest ideas.<p>I am confused as to why you exclude Perl from the group of "modern scripting languages" -- Perl 5's object system is stolen from Python, for example, which means it's newer (and therefore more "modern") than Python.<p>Anyway, Perl's advantages for writing new code is its library ecosystem.  It is continually evolving to incorporate new ideas and make them easily usable for the average developer; easily usable in a way that allows them to keep their old code alive and working, but while making their new code much better.<p>An example of this that always comes up is the Moose object system.  It interoperates with Perl's rather-limited built-in object system; this means, you don't have to throw away your old code to get the advantages of a new object system in your new code.  And, it's newer than all of Ruby, Python, Smalltalk, and Common Lisp, and it learns from all those object systems and provides Perl with something better than those.  I would go so far as to say it's a compelling reason to continue to use Perl and to choose Perl for new applications; when I write OO code in languages other than Perl I am always wishing I had certain Moose features.  (Usually lazy_build.)  I usually end up with something that doesn't quite work the way I want it to, which is sad.  In Perl, I always get what I want.<p>(How would I write something like Test::Sweet in Python?)<p>Perl also has a few more libraries than Ruby or Python or PHP.  This probably doesn't matter for your average application; you are going to be able to connect to your MySQL database in any of those languages.  But it is nice when something strange comes up; there is usually a library than at least partially solves your problem.  That's a product of keeping Perl 5 stable and gradually adding new features.<p>Python's strategy is "hello, there's Python 3 now, it's awesome, oh yeah, just rewrite all your apps and libraries!" which is not as conducive to keeping the library ecosystem alive.<p>So anyway, "Perl is for legacy people and legacy code" is clever and true.  But it's also for modern people and modern code.  The real world requires both.