hi, i was interested if perl is still relevant in this day and age. Perl has been on the decline for a very long time now. Perl 6 (now named 'raku) not being backwards compatible with perl 5 code made the already small perl community even smaller by splitting it in half. A good example is lisp with it’s thousands of different dialects.

Is it still worth using or is it bound to legacy software forever? Like cobol.

  • glad_cat@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    41
    arrow-down
    5
    ·
    edit-2
    1 year ago

    For me, Python replaced Perl 15 years ago. I know Perl is a great language, but it’s too “write-only.” Python replaced both BASIC and Perl at the same time, even with the problems of migration from v2 to v3. Python can also do scripts to replace Bash and PowerShell. I don’t see myself learning Perl now, it would be a waste of time.

    Perl was revolutionary at the time with CGI and regexes, but it’s not needed anymore.

    • El Barto@lemmy.world
      link
      fedilink
      English
      arrow-up
      35
      arrow-down
      21
      ·
      edit-2
      1 year ago

      I wish python was not indentation aware. It has discouraged me from learning it.

      Edit: downvoted by fanbois. Look, I’m not married to my tools.

      • Muffi@programming.dev
        link
        fedilink
        English
        arrow-up
        26
        arrow-down
        1
        ·
        1 year ago

        Even if you’re writing JavaScript, you should be using proper indentation. What an odd thing to keep you from learning it.

        • El Barto@lemmy.world
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          4
          ·
          1 year ago

          Sometimes I want to write a quick oneliner or a quick algorithm to test things out. Or not worry about indentation when trying a solution I might discard in five minutes.

          With Python, I don’t have that choice.

        • dukk@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Things get messy though, when you have to break the rules of indentation once in a while or when you have “improper “ indentation. Whitespace is a stupidly messy thing. Indentation should be a style guide, not part of the language semantics.

      • richieadler@lemmy.myserv.one
        link
        fedilink
        English
        arrow-up
        22
        arrow-down
        1
        ·
        1 year ago

        If that’s your only reason, I’d encourage to try it anyway. Logical indentation is initially weird but it can be overcome very fast.

      • glad_cat@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        1
        ·
        1 year ago

        It has never been an issue for me in 20 years. If you move code, you cut a whole paragraph, paste, and indent appropriately.

      • treadful@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I wish python was not indentation aware. It has discouraged me from learning it.

        lol, then you just don’t like Python. You can’t disassociate the two things.