From: David Alan Black Date: 2001-07-19T12:19:46+09:00 Subject: [ruby-talk:18086] Re: 99 bottles of beer On Thu, 19 Jul 2001, David Alan Black wrote: > OK, now I'm unabashedly going for minimalism: > > b=Hash.new("bottles of beer") > b[1]=b[2].tr's','' > w="on the wall" > p="Take one down, pass it around," > 99.downto(1){|c|n="#{c} "+b[c] > puts n+" "+w+"."+"\n"if c<99 > puts n+" "+w+", "+n+"."+"\n"+p} > puts "No more "+b[2]+" "+w+"." I lose. Tom Gilbert's is shorter. And he even used <