News for hackers. Stuff that matters.
Re:93% of Paint Splatters Are Valid Perl Programs by puls on Thursday April 04, 2019 @04:39PM (#19576872)
I love this footnote so much:

> This feature does enable a neat quine: the Perl program “Illegal division by zero at /tmp/quine.pl line 1.”, when saved in the appropriate location, outputs “Illegal division by zero at /tmp/quine.pl line 1.” The reason for this behavior is left as an exercise for the reader.

Re:93% of Paint Splatters Are Valid Perl Programs by intuitionist on Thursday April 04, 2019 @07:27PM (#19578160)
The part that left my office in stitches:

> (To be fair to Perl, when perl is run with the -w flag to enable warnings, it does helpfully inform the user that at some point in the future, the Perl developers will most likely pick gggijgziifiiffif as a new reserved word:

>> Unquoted string "gggijgziifiiffif" may clash with future reserved word at - line 1.)

Re:93% of Paint Splatters Are Valid Perl Programs by sitkack on Friday April 05, 2019 @03:02AM (#19580377)
Knowing Larry, I believe he is currently working on a patch.
Re:93% of Paint Splatters Are Valid Perl Programs by rurban on Friday April 05, 2019 @07:24AM (#19581472)
Larry left perl5 about 15 years ago, and nobody every will reserve random keywords like this. Keywords are very problematic in perl5 and are not needed all. You can add random new keywords at runtime, and you can add methods doing almost everything, like accepting blocks or functions, implementing most control structures.
Re:93% of Paint Splatters Are Valid Perl Programs by nanis on Thursday April 04, 2019 @05:37PM (#19577362)

     $ perl -MO=Deparse -e "Illegal division by zero at /tmp/quine.pl line 1."
    'division'->Illegal('zero'->by('at' / 'tmp' / 'quine' . line'->pl(1)));
     -e syntax OK
Re:93% of Paint Splatters Are Valid Perl Programs by 275qaz on Thursday April 04, 2019 @04:50PM (#19576964)
It's trying to divide "Illegal division by zero at /" by "tmp/quine.pl line 1." and "tmp/quine.pl line 1." evaluates to 0?
Re:93% of Paint Splatters Are Valid Perl Programs by fanf2 on Thursday April 04, 2019 @07:57PM (#19578337)
It is slightly more complicated than that :-) https://fanf.dreamwidth.org/131318.html

the actual parse is

  division->Illegal(
    zero->by(
      ((“at” / “tmp”) / “quine”)
       . line->pl(1.0)
    ))
Re:93% of Paint Splatters Are Valid Perl Programs by barthold on Thursday April 04, 2019 @05:23PM (#19577269)
I think it's equivalent to something like

  Illegal::division(by::zero(at/tmp/quine . pl::line(1.)))
Re:93% of Paint Splatters Are Valid Perl Programs by benj111 on Thursday April 04, 2019 @05:05PM (#19577097)
Or "quine.pl line 1." Evaluates to 0?

Or should that be 0.0???

Re:93% of Paint Splatters Are Valid Perl Programs by yellowapple on Thursday April 04, 2019 @05:30PM (#19577312)
Yeah, I think it's both divisions. Both 'perl -e "in /tmp"' and 'perl -e "tmp/quine"' result in the same division-by-zero error.
Re:93% of Paint Splatters Are Valid Perl Programs by HocusLocus on Thursday April 04, 2019 @09:09PM (#19578715)
> This feature does enable a neat quine: the Perl program “Illegal division by zero at /tmp/quine.pl line 1.”, when saved in the appropriate location, outputs “Illegal division by zero at /tmp/quine.pl line 1.” The reason for this behavior is left as an exercise for the reader.

For quines, see the chapter "Air on G's String", a dialogue between Achilles and the Tortoise in Douglas Hofstadter's book GODEL,ESCHER,BACH: AN ETERNAL GOLDEN BRAID.