What The F#
whatthefsharp.com
external-link
A Collection of Surprising Behavior by Programming Language

A small collection of WTF code snippets sorted by language.

Perl not included in list.

Conclusion: In Perl, everything works as expected

ℍ𝕂-𝟞𝟝
link
fedilink
English
95d

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

@neidu3@sh.itjust.works
link
fedilink
English
9
edit-2
4d

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

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 168 users / day
  • 347 users / week
  • 615 users / month
  • 2.35K users / 6 months
  • 1 subscriber
  • 1.64K Posts
  • 36.4K Comments
  • Modlog