r/ProgrammerHumor • • Oct 08 '26

Meme writePerl

Post image
201 Upvotes

59 comments sorted by

View all comments

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.