From: Eugen Ciur Date: 2010-08-03T19:04:20+09:00 Subject: Re: Block variable & Local variable 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).

On 08/03/2010 12:45 PM, Amir Ebrahimifard wrote:
Eugen Ciur wrote:
  
Look here
http://svn.ruby-lang.org/repos/ruby/tags/v1_9_1_0/NEWS

Since v 1.9.1 block arguments (in our case |num|)  are  always local,
i.e in 'each' block |num| will not conflict
  with outer 'num' variable. In your machine you have 1.9.1 version.
    
It means in ruby v 1.8.6 block variable and local variable are the same 
, and not difference between them ?