Srinivas JONNALAGADDA wrote:
> I was trying the well-known problem of writing a program that outputs
> itself. Here is first trial.

Off the top of my head comes the absolutely oldest cheat in the book:

print File.read($0)

Try not to groan too loud.

David Vallner