On Mon, Jun 1, 2009 at 3:20 PM, Brian Candler <b.candler / pobox.com> wrote:
> James Gray wrote:
>> On May 31, 2009, at 10:59 PM, Jorrel wrote:
>>
>>> Is using File considered cheating?
>>>
>>> =A0 =A0puts File.readlines __FILE__
>>
>> It usually is, yes.
>
> I'd suggest you pipe the source code into the ruby interpreter:
>
> =A0 =A0cat quine.rb | ruby
>
> =A0 =A0cat quine.rb | ruby | diff -u quine.rb -
>
> That eliminates tricks with __FILE__ and $0.
>
Good thinking, but the "optimal" solution still passes ;)

 > xxx | ruby | diff -u xxx -

N.B. this ">" ain't a quote ;)
Robert
--=20
Toutes les grandes personnes ont d=92abord =E9t=E9 des enfants, mais peu
d=92entre elles s=92en souviennent.

All adults have been children first, but not many remember.

[Antoine de Saint-Exup=E9ry]