this post was submitted on 03 Apr 2025
7 points (100.0% liked)

Asklemmy

47188 readers
860 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] MoonElf@hexbear.net 2 points 1 day ago* (last edited 1 day ago)

when it comes to banging shit out, when you need more juice than bash, perl was capable of some crazy shit. I found it really frustrating trying to learn real programming because I was taught perl extremely thoroughly and for most other languages programming exercises you have to get 3/4ths of the way through the book before you're beyomd what perl can do in a couple of lines.

I eventually learned proper oo programming and compiler languages but there were a few years in the late 90's and the CGI-BIN days where a solid grasp of perl made you feel like a real hacker-ma'am.

As an example I give you the 'flip flop operator', (no idea if perl was the first language to incorporate this, but i saw it there first) which would allow you to parse any data stream, and execute a code block on every line in the data stream between two matching regexes. Absolutely invaluable for screen scraping and would let you hit a URL and extract just the data you needed with about 4 lines of code total, including the library call for the get!