• @marcos@lemmy.world
      link
      fedilink
      109 months ago

      That deserves an “always has been” meme… But IMO, Ruby outperled Perl since the beginning.

      Perl doesn’t let you redefine the syntax so that you can write the same program multiple ways. All it does is to encourage multiple programs to have the same meaning.

        • @marcos@lemmy.world
          link
          fedilink
          29 months ago

          People mostly refrain from using it.

          Much like people used to create an idiom in Perl and stick to it.

      • @exussum@lemmy.world
        link
        fedilink
        19 months ago

        And lets you easily write metal languages due to the way you can pass around blocks. Think configuration as code type stuff.

    • V H
      link
      fedilink
      19 months ago

      Ruby cribbed a whole lot of syntax from Perl from the very beginning. Most of the rest comes from Smalltalk, but Ruby got it’s multitude of two character “$” variables from Perl, it’s autosplit mode (-a -n -p switches, letting Ruby, like Perl “emulate Awk”), it’s regexp match captures going into $1, $2 etc. from Perl.