From: Adam Prescott Date: 2011-05-24T19:16:57+09:00 Subject: Re: "Local variable within code blocks do not interfere with those outside the block" --90e6ba6e83d83b8d3504a402e325 Content-Type: text/plain; charset=UTF-8 On Tue, May 24, 2011 at 11:07 AM, Adam Prescott wrote: > a = 1; [2].each { |a| p a }; a #=> 2; 1 > Important to note that this differs from 1.8: RUBY_VERSION #=> 1.9.2 a = 1; [2].each { |a| p a }; a #=> 2; 1 RUBY_VERSION #=> 1.8.7 a = 1; [2].each { |a| p a }; a #=> 2; 2 --90e6ba6e83d83b8d3504a402e325--