Good Reasons to Use Perl in 2021



Perl 5 still dominates as the most powerful terminal scripting language on the planet. It is the only language with p{Lu} Unicode support. It was never meant for large scale applications, let alone the entire f*ing Web. The fact that Perl held up as well as it did is a testament to its solid stability and undeniable power. Perl still has a variety of benefits over all other languages, just don’t write anything you’d call an “application” in it (and stay the hell away from anything but Perl 5).

5 thoughts on “Good Reasons to Use Perl in 2021

  1. Perl 6 (now Raku) turned into a truly awesome programming language.
    It is like programming in a language that someone brought back from the future.
    It brings in features from many disparate languages and makes them feel as if they have always belonged together.

    It has better Unicode support than pretty much all other languages.

    say '×'.uniname; # MULTIPLICATION SIGN

    It also has a better redesigned regex language that puts all others to shame.
    (It treats regular expressions like the powerful full blown parsing language that it should be.)

    'ABC_DEF_GHI' ~~ /^ ( <:Lu>+ )+ % '_' $/

    The above matches one or more runs of uppercase Unicode characters separated by single underscore characters.
    Matching that would be nowhere as easy in any other dialect of regular expression.

    Also since regexes are treated as just one of several DSLs in Raku, it will also benefit from the optimizations that Raku on the whole gets.

    Add that to the ability to join them together in a grammar and you get something that reads like EBNF/regex hybrid.
    (See also JSON::Tiny::Grammar https://github.com/moritz/json/blob/master/lib/JSON/Tiny/Grammar.pm )

    In fact it seems like Raku grammars are the only parsing system that is powerful enough to parse Raku without a lot of pain.

    So why are you dismissing Perl 6/Raku out of hand like everyone, including yourself, dismiss Perl?

    There was someone (might have been Randal or Ovid) who said that they were hired by a company to move them back to Perl, because Perl didn't fail them like the “fad” languages had.
    So they seemed very happy using Perl in the large. (There was no mention of what languages were the “fad” languages.)
    There have also been a few added features that have made programming in the large nicer than it has been.

    (Also Perl.com got hijacked, no one forgot to renew the domain like someone in your chat mentioned. https://www.perl.com/article/the-hijacking-of-perl-com/ )

Leave a Reply

Your email address will not be published. Required fields are marked *