On Sat, 21 Jul 2001, Will Sobel wrote:

> 
> def b
> "#{N>0?N: 'No more'} bottle#{'s'if N!=1} of beer"end
> (N=99).times{w=" on the wall";puts b+w,b,"Take one down, pass it around
> ";N-=1;puts b+w+'.'}
> 
> Just knocked it down to 152. Output is kind of ugly, bit it works (complete
> with warnings!)
> 
> - Will

This has what I'm told is the correct formatting, at 157:

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")}


or using your formatting at 144:

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")}

For the warnings, just redirect stderr to /dev/null ;-)