From: Amir Ebrahimifard Date: 2010-08-03T17:19:27+09:00 Subject: Block variable & Local variable Hi What does happen for "num" variable in this code : array = [1,2,3,4,5] x = 1 num = 1 array.each { |num| puts num*20 + x } ( after this code when I type "puts num , ruby return 5 ! why? ) -- Posted via http://www.ruby-forum.com/.