From: Avi Bryant Date: 2001-07-21T10:26:06+09:00 Subject: [ruby-talk:18226] Re: 99 bottles of beer On Sat, 21 Jul 2001, Avi Bryant wrote: > Thanks, my mistake. Same number of bytes, I think: > > def b > "#{N>0?N: :No} bottle#{'s'if N!=1} of beer"end > W=" on the wall" > (N=99).times{puts"#{b+W}, #{b}.","Take one down, pass it around,",(N-=1;b+W".\n\n")} Ack. I meant: def b "#{N>0?N: :No} bottle#{'s'if N!=1} of beer"end W=" on the wall" (N=99).times{puts "#{b+W}, #{b}.","Take one down, pass it around,",(N-=1;b+W+".\n\n")}