logoalt Hacker News

omoikane • today at 2:56 AM • 1 reply • view on HN

There is a gem in the footnote right below gggijgziifiiffif, where it says it's possible to make a perl error quine by writing this line to the right location:

    Illegal division by zero at /tmp/quine.pl line 1.
I just tried this perl 5.42.0, and any file name starting with a '/' will work.

See also:

https://news.ycombinator.com/item?id=40202182

https://news.ycombinator.com/item?id=19576872

https://codegolf.stackexchange.com/a/48394


Replies

toast0 • today at 7:18 AM

> I just tried this perl 5.42.0, and any file name starting with a '/' will work.

any file name? How about /1

?