6
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 03 Apr 2025
6 points (100.0% liked)
Asklemmy
47226 readers
1318 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!
- Open-ended question
- 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.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 6 years ago
MODERATORS
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!