On Tue, 6 Mar 2001, Dave Thomas wrote:
> "Ben Tilly" <ben_tilly / hotmail.com> writes:
> > On PerlMonks I just ran across a reference to the
> > canonical list of quines:
> Hal's got some at http://www.hypermetrics.com/ruby.html.



In last July I wrote a quine.



proc{|f|f+".call %q{#{f}}"}.call %q{proc{|f|f+".call %q{#{f}}"}}



It seems I just had visited Hal's site.  Mine is slightly different: it
evaluates to itself, so if you have it in $a, you can type (in irb or your
own rep loop):

eval $a
eval eval $a
eval eval eval $a
eval eval eval eval $a

have fun!



matju