Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
lifg
Dec 4, 2000
<this tag left blank>
Muldoon

qntm posted:

Perl code:
print reverse "hello world";
# "hello world"

I’m surprised print isn’t trying to use reverse as a filehandle and output to it.

I used Perl professionally for a decade+, and I’m still surprised by the semantics at times. It’s one of my favorite languages, but it’s a bad language to build software in.

Adbot
ADBOT LOVES YOU

lifg
Dec 4, 2000
<this tag left blank>
Muldoon
Same. I’m trying to move away from using it professionally, but it fits really well into Unix pipelines so I still grab it for small tasks all the time

lifg
Dec 4, 2000
<this tag left blank>
Muldoon
Ruby and Python are better languages for building software, but for throw-away Unix command line uses you really can’t beat learning either Perl or Awk+Sed.

lifg
Dec 4, 2000
<this tag left blank>
Muldoon

duck monster posted:

Oh Perl stopped being a major player a long long time ago, a combination of people finding other languages (ruby for a while, then python) a bit more ergonomic to maintain without having to learn too much about the language itself. It’s a powerful multifaceted toolbox of a language. But frankly most older Perl is a loving nightmare to maintain unless you live breathe and dream in regex.

It’s fun to think about the evolution of languages, and how each evolves to fit a niche, and has to continue to evolve or die. Perl 5 lost almost ten years of progress when it decided to put all changes on hold while waiting for Perl 6, and that’s when Python and Ruby just took over.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply