syntax error at =# line 2, at EOF
Execution of =# aborted due to compilation errors.
Save to a file named "=#". I vaguely recall a similar
Perl quine but I was surprised at how long this took me
to come up with. I even tested it on several versions
of Perl on both Unix and Windows. (:
To validate that it is a quine under Unix (or WinNT and
later, if you have a "diff" that knows how to read from
stdin), use:
perl "=#" 2>&1 | diff "=#" -
Update: In PerlMonk's tradition, I've done the
search after creating the node and found that
similar quine
here. (:
| |
-
tye
(no, I don't want to stand too close to
that)