Hacker News new | ask | show | jobs
by brisket_bronson 20 days ago
Figure 6 represents the string “gggijgziifiiffif”, which by pure coincidence happens to accurately represent the authors’ verbal reaction upon learning that “unquoted strings” were a feature intentionally included in the Perl language
3 comments

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

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

any file name? How about /1

?

Unquoted strings are the default in shell languages, and one of the design goals of Perl was to be a more powerful replacement for shell scripts. It's not a particularly surprising feature, really.

For anything more complex than a one-off script, Perl is pretty much always written with `use strict`, which disables unquoted strings and certain other (mis)features.

I'm afraid I have to tell you you lack the soul of a poet to truly appreciate the brilliant design . Perl is magic (like litteraly). I'm fairly sure it's one of the untold inspiration of the Harry Potter books
I really dig your whimsy.
This is also a valid Perl program (I bet)
necronomicon, maybe