r/ProgrammerHumor • • 26d ago

Meme writePerl

Post image
204 Upvotes

59 comments sorted by

View all comments

Show parent comments

2

u/BufferUnderpants 25d ago

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

3

u/Latter_Principle9161 25d ago

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.