From: "David A. Black" Date: 2010-08-04T06:31:43+09:00 Subject: Re: Block variable & Local variable Hi -- On Tue, 3 Aug 2010, Eugen Ciur wrote: > Not exactly. Blocks defines a new variable scope, however blocks have access > to variables defined outside block scope. > Thus, a variable defined outside block will be modified inside block (for > ruby 1.8.6). In Ruby 1.9.1 too, for non-parameter variables -- for example: a = nil 10.times {|i| a = i } p a # 9 David -- David A. Black, Senior Developer, Cyrus Innovation Inc. The Ruby training with Black/Brown/McAnally Compleat Philadelphia, PA, October 1-2, 2010 Rubyist http://www.compleatrubyist.com