A small collection of WTF code snippets sorted by language.
You must log in or register to comment.
Perl not included in list.
Conclusion: In Perl, everything works as expected
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
Correction: In Perl, everything works as can be expected.