204

Source: https://0x2121.com/7/Lost_in_Translation/

Alt Text: (For searchability): 3 part comic, drawn in a simple style. The first, leftmost panel has one character yelling at another: "@+_$^P&%!. The second comic has them continue yelling, with their hands in an exasperated position: "$#*@F% $$#!". In the third comic, the character who was previously yelling has their hands on their head in frustration, to which the previously silent character responds: "Sorry, I don't speak Perl".

Also relevant: 93% of paint splatters are valid perl programs

you are viewing a single comment's thread
view the rest of the comments
[-] neidu2@feddit.nl 11 points 1 day ago* (last edited 1 day ago)

I primarily use perl, and while I find its syntax easy to understand, I'll be the first to admit that its syntax and special use cases thereof does provide a way for some rather exotic symbol-garbage to be valid code.

Normal perl code is simple enough. But abnormal code does happen, sometimes on purpose, sometimes by accident.

I'll share with you this gem:
Why is this program valid? I was trying to create a syntax error

this post was submitted on 20 Oct 2024
204 points (97.7% liked)

Programmer Humor

32275 readers
948 users here now

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

Rules:

founded 5 years ago
MODERATORS