From: Boson Date: 2008-04-10T23:15:04+09:00 Subject: Re: What should this print? With more context: It's interesting that these two product different output: old = nil [1,1].each do |n| if n != old x = 1 old = n end p x end old = nil for n in [1,1] if n != old x = 1 old = n end p x end