4 ms·
You are not alone feeling that. Check out to paper titled "93% of Paint Splatters are Valid Perl Programs" https://famicol.in/sigbovik/ https://famicol.in/sigb
by glofish 7y ago
You are not alone feeling that. Check out to paper titled "93% of Paint Splatters are Valid Perl Programs"
https://famicol.in/sigbovik/ https://famicol.in/sigbovik/
"In this paper, we aim to answer a long-standing open problem in the programming languages community: is it possible to smear paint on the wall without creating valid Perl?"
- Dylan16807 7y agoExcept that the vast majority of those OCRs are just a series of letters. They all parse as "a variable name, that's it", and it's not even weird for that to be a valid line. It's the kind of joke that doesn't teach you anything, rather than the kind that does.
- glofish 7y agoI think there are a couple of neat examples there: lerzfijglpFiji-j -*? plus I learned about the "unquoted string" feature that is the reason why the joke works also, the writing is quite entertaining.
- Grinnz 7y agoIt's not so much a feature as how really old versions of Perl worked. Any program using strict doesn't allow it unless it's a known subroutine name, built-in or other symbol. Except in certain cases because back-compat is complicated.
- goto11 7y agoI learned that: the Perl program “ Illegal division by zero at/tmp/quine.pl line 1. ”, when saved in theappropriate location, outputs “ Illegaldivision by zero at /tmp/quine.plline 1.”