this post was submitted on 15 Jan 2025
91 points (98.9% liked)

Programmer Humor

36950 readers
308 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

A small collection of WTF code snippets sorted by language.

you are viewing a single comment's thread
view the rest of the comments
[–] toast@retrolemmy.com 32 points 5 months ago (2 children)

Perl not included in list.

Conclusion: In Perl, everything works as expected

[–] HK65@sopuli.xyz 10 points 5 months ago

Correction: In Perl, everything works as can be expected.

[–] neidu3@sh.itjust.works 9 points 5 months ago* (last edited 5 months ago)

I'll share with you this gem from someone who tried to cause a syntax error on purpose, but the script ran just fine: https://stackoverflow.com/questions/11695110/why-is-this-program-valid-i-was-trying-to-create-a-syntax-error