r/ProgrammerHumor • • Oct 08 '26

Meme writePerl

Post image
202 Upvotes

59 comments sorted by

60

u/666AB Oct 08 '26

The secret is to never read Perl. When it breaks, you write a new Perl script that fixes the old one. It's Perl all the way down baby

8

u/za72 Oct 09 '26

perl was my first scripting language... I thought i was fancy trying to write readable scripts

21

u/RealBasics Oct 08 '26

Yes! The joke about Perl was that it's "write-only" code. But man you could do some elegantly terse coding with it. My favorite was a fully-functioning wiki in 221 characters. (371 if you wanted to import a css file.)

I used to be able to parse "obfuscated" Perl scripts, and wrote my first fully-functioning CMS in Perl (though it was intentionally not obfuscated and was well-documented.)

I haven't written a Perl script since maybe 2005, but I used to live and breathe it. I still miss using it so much.

9

u/pidddee Oct 08 '26

I still live and breathe it

3

u/Sample-Range-745 Oct 09 '26

Me too.... Mojolicious is nice for web stacks...

2

u/pidddee Oct 09 '26

I hate frameworks so no idea, I just write to Unix sockets directly or use the apache modules

9

u/gerbosan Oct 08 '26

PTSD. Tell us about your plans for the duck farm first.😅

8

u/tsetem Oct 08 '26


Legit writing Perl hash that is dereferencing hashes of lists of regex built from for loops.

3

u/conicalanamorphosis Oct 08 '26

That clearly needs grammars, so you should switch over to Raku.

/I kid...

1

u/GoogleIsYourFrenemy Oct 08 '26

Noooooooooooooooooooooo

8

u/BrightLuchr Oct 11 '26

I genuinely love Perl. Once you get into it, the code just flows from your mind into reality. In the early 2000s, we were doing an important project with a small team. We had object oriented Perl to implement the core technologies for a niche technology that no one else had. Implementation was faster than any other language I've used. It ran fast too. Debugging was a breeze because the built-in debugger was outstanding. At the peak, I was dreaming in Perl at night. It was beautiful.

Instead of the "never read Perl" attitude, blame the author for not documenting their code. It isn't hard.

5

u/piterparker Oct 08 '26

The language for writing regular expressions?

5

u/tsetem Oct 08 '26

I think you mean the regular expression that acts like a language 😬

9

u/Stummi Oct 08 '26

who is happy about writing perl?

19

u/tobotic Oct 08 '26

Me :)

15

u/aberroco Oct 08 '26

4

u/tobotic Oct 08 '26

Upvotes for the Misfits gif, and the Misfits gif alone.

1

u/DeusExHircus Oct 10 '26

You'd screw your own sister for a slice of cheese

5

u/LittleMlem Oct 08 '26

Me too! It was the first language I had to work with in the industry and ot was great. I still miss it's regex syntax, ot was so gosh darn convenient!

3

u/darknekolux Oct 08 '26

90/00'ies me.

6

u/Active_Name5021 Oct 08 '26

Me being paid a crap ton of money to maintain all the perl legacy no one else wants to touch

0

u/Ok_Actuary8 Oct 08 '26

shh... don't tell anybody about that new "AI" thing.

1

u/Active_Name5021 Oct 08 '26

I can tell you don't work on legacy perl software if you think "AI" will magically make the problem go away

1

u/Ok_Actuary8 Oct 08 '26

Well, I'm probably one of the guys who wrote all that "legacy perl software" back then in the 90ies, my dude ;) I'm not sure how well the current AI tools are trained on Perl, but it's really not that hard. just some weird idioms and syntax and RegExp thrown together. I see no reason why Claude or GH Copilot could not do that, have you even tried?

4

u/Active_Name5021 Oct 08 '26 edited Oct 08 '26

Appreciate it mate, your garbage spaghetti has kept me gainfully employed for many years.

"It's really not that hard" - what the last guys who tried to AI their way out of legacy said before they gave up and tried to peddle a shitty vibe-coded clone to management (spoilers: It didn't go well)

2

u/DonkeyTron42 Oct 08 '26

This is basically all languages now in the age of AI.

3

u/Steerable-Octopus Oct 08 '26

Writing perl in 2026?? That either earns respect or concern, possibly both at the same time.

4

u/Latter_Principle9161 Oct 08 '26

It still has its charm. 2026 marks the year when I started coding in Perl. Even if it was only few scripts.

2

u/BufferUnderpants Oct 08 '26

Oh, you're a Perl fan? Name three different meanings of $_

3

u/Latter_Principle9161 Oct 09 '26

Uh, fan is a bit of a stretch. $_ is the default variable (sorry if the name is wrong but that's what it essentially is). Like have a for loop with no explicit counter -> use $_. You don't assign a return value of a function to a variable -> find it in $_. These two are the first ones which come to my mind but there are more for sure.

2

u/LittleMlem Oct 08 '26

If cobol is still a thing, then why not perl? Legacy code is a thing

2

u/Steerable-Octopus Oct 08 '26

Yes that's why I said it earns respect.

1

u/-Debugging-Duck- Oct 08 '26

Just saw on Wikipedia. Had an update on July 2026, version 5.44.0.

2

u/Latter_Principle9161 Oct 09 '26

Perl core gets regular updates. But the ecosystem is partially quite outdated. For example try to work with Word docx files. But as long as one's dealing with text files Perl is doing great imho.

1

u/mrwedders Oct 13 '26

Going back a few years but we used to read and create mildly complex xlsx files with a few CPAN modules.

1

u/Latter_Principle9161 Oct 13 '26

Xlsx works surprisingly well, that's true.

1

u/a-r-c Oct 10 '26

it just works, why not use it

runs on every linux server made in the past 50 years

1

u/Steerable-Octopus Oct 11 '26

Because most junior engineers aren't taught perl, they're taught python.

Maintaining and modernizing legacy scripts that run perl is noble but writing new perl means adding code that junior engineers cannot easily maintain and improve.

2

u/a-r-c Oct 11 '26

Because most junior engineers aren't taught perl

if only junior engineers were capable of learning on their own

1

u/Steerable-Octopus Oct 11 '26

Nobody said they weren't.

But this is an unnecessary skill to force new engineers to learn when python works. More likely they'll just learn the language to migrate your work to python and throw away your code at first opportunity.

This is where writing perl in 2026 is concerning.

Even Garth Snyder, Trent Hein, Ben Whaley and Dan Mackin writes that python is favored over perl in the 5th edition of UNIX and Linux System Administration Handbook, so this isn't just my opinion but something shared with a group of Linux authorities.

-2

u/a-r-c Oct 13 '26

gonna keep using perl and not worrying about it tbh

if a group of Linux authorities jumped off a bridge, would you follow them?

1

u/Steerable-Octopus Oct 13 '26

Good thing we don't work in the same team then I guess.

0

u/a-r-c Oct 13 '26

yes I find it hard to work with morons lmao

1

u/BrightLuchr Oct 11 '26

Perl is a far better language than Python. More advanced stuff is built in. Scoping isn't a mess. There are actual braces not error-likely indents. The debugger is better. And no nonsense like Python 2 vs. 3.

2

u/Steerable-Octopus Oct 11 '26 edited Oct 11 '26

Okay, that's fine for you to think that. One can argue that Rust is better than C, that C# is better than D, that Go is better than an equivalent solution written in Java. That Ruby is better than Python. And yes, that Perl is better than Python.

But if I'm leading a team of engineers for different projects I want all of them to converge on the same languages that map to industry standards, and python is the most common industry standard. Perl is shrinking.

1

u/will_r3ddit_4_food Oct 09 '26

Perl is still around?

1

u/MsInput Oct 09 '26

I'm gonna vibe code a vibe coding tool for writing the most unintelligible Perl that ever existed. It's gonna be pure vibes

1

u/a-r-c Oct 10 '26

just write it better lol

1

u/kherrera Oct 10 '26

Does anyone else remember Ikonboard? I was just a kid when I wrote a mod that allowed other mods to be inlined into a more traditional site appearance (header, sidebars, footer). Fun times!

1

u/theQuandary Oct 11 '26

With the advent of AI, you can write perl in any language.

1

u/mrwedders Oct 13 '26

My old org had a style guide just to keep code legible. Pretty sure I was told to keep anything "too Perl-y" to a minimum 😂

Spent 8y in Perl though and while it is very messy and flawed it is tremendously fun. We had some of the thick O'Reilly Perl books in the office and I loved leafing through them when bored to find more mad language features.

1

u/dbagames Oct 14 '26

Do you mean generating perl with Claude code? /s

1

u/johnnybgooderer Oct 08 '26

Pearl, the write-only language.

0

u/FallenVampireLord Oct 08 '26

Use the bottom image for both.

0

u/goldPotatoGun Oct 08 '26

Write once, read never.