On Thu, Jul 19, 2001 at 12:11:07PM +0900, David Alan Black wrote: > 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+"." that's 224 characters and some l33t stuff that i wouldn't have thought of. so in the same spirit as my earlier revision of someone else's work, here it is in 217 :) 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." -- Doubt is a pain too lonely to know that faith is his twin brother. - Kahlil Gibran