From: tromp@... (John Tromp) Date: 2001-09-01T08:50:05+09:00 Subject: [ruby-talk:20648] ruby quine The web page http://www.nyx.net/~gthompso/quine.htm shows self-reproducing programs, aka "quine"s for many languages, but Ruby is conspicuously missing. What would be the shortest Ruby program to output itself? I don't suppose it could be as short as in python? : l='l=%s;print l%%`l`';print l%`l` regards, %!PS % -John Tromp (http://www.cwi.nl/~tromp/) 42 42 scale 7 9 translate .07 setlinewidth .5 setgray/c{arc clip fill setgray}def 1 0 0 42 1 0 c 0 1 1{0 3 3 90 270 arc 0 0 6 0 -3 3 90 270 arcn 270 90 c -2 2 4{-6 moveto 0 12 rlineto}for -5 2 5{-3 exch moveto 9 0 rlineto}for stroke 0 0 3 1 1 0 c 180 rotate initclip}for showpage