Hakusa / gmail.com wrote: > I have some good experience in other languages and consider myself a > good programmer, but some of the good techniques I've picked up don't > seem to work here. Here are two examples. > > x=aNum > y=0 > x.times do > (y+1).times do > Stuff > end > end > > y never actually increments. Why? because you don't actually increment it anywhere. Perhaps you want something like: x=5 y=0 x.times do (y += 1).times do puts "x = #{x} y = #{y}" end end cheers, mick