> From ruby-talk-admin / ruby-lang.org Sat Jul 21 03:34:47 2001 > Date: Sat, 21 Jul 2001 08:36:56 +0900 > From: Matt Armstrong <matt / lickey.com> > Subject: [ruby-talk:18205] Re: 99 bottles of beer > To: ruby-talk / ruby-lang.org (ruby-talk ML), > Glen Starchman <glen / enabledventures.com> > Cc: ruby-talk / ruby-lang.org (ruby-talk ML) > > Glen Starchman <glen / enabledventures.com> writes: > > > 99.downto(0){|x|w=" on the wall";u="#{x!=0?eval(x.to_s):'no more'} > > #{x>1?'bottles':'bottle'} of beer";p"#{u}#{w} #{u}. Take one down, pass > > it around,#{u}#{w}"} > > > > 159 characters... can it be squeezed down any further? > > By one...change x!=0 to x>0 > #{u+w} instead of #{u}#{w} should work, no? Happy squeezing :) Joel Wilsson