En op 20 maart 2002 sprak Csaba Ráduly:
> If the outputs of the above are identical, does this count
> as a quine ?

Let's call it an 'accidental' quine. My main purpose was simply
to display Buffy's face. :)

I am not a quine expert, but I suspect most people would view reading
your own source as cheating and not in the spirit of the game.
I suppose it does qualify as a quine, however, and I wonder if:
open$%;print<0>
is indeed the shortest possible Perl quine.

Here is some quine code (extracted from Dr Damain's selfgol, I think):
@s=(q[printf pop@s,@s],q[@s=(q[%s],q[%s])x2;%s])x2;printf pop@s,@s

Japhy has written a CPAN quine module, Quine-1.01.

/-\ndrew

Reply via email to