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?
[ Parent
| on HN ]
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.