On 6/4/07, Bill Kelly <billk / cts.com> wrote: > After that, I modified it slightly to remove some duplication: > > 1.upto(100) {|i| m3 = i%3 == 0; m5 = i%5 == 0; x=""; x<<"Fizz" if m3; x<<"Buzz" if m5; x=i unless m3||m5; print "#{x} "} That's a bit long for golfing, but it's probably the most readable one-liner I've seen so far. -- Bill Guindon (aka aGorilla) The best answer to most questions is "it depends".