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.
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.
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?
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)
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.
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.
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.
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.
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.
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.
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!
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.
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
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.
8
u/tsetem Oct 08 '26
Legit writing Perl hash that is dereferencing hashes of lists of regex built from for loops.
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?
9
u/Stummi Oct 08 '26
who is happy about writing perl?
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.
1
u/Abject-Kitchen3198 Oct 08 '26
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.