From: Love U Ruby Date: 2013-03-11T21:47:35+09:00 Subject: Re: Confusion with block local variable declaration with block variable declaration within the pipe Hans Mackowiak wrote in post #1101086: > did you finally understand the difference between capitalize and > capitalize! and why > > this works: > newstr ="" > a = "hello world".split(//).each{ |x| newstr << x.capitalize } > > but this does not? > newstr ="" > a = "hello world".split(//).each{ |x| newstr << x.capitalize! } > > > ?? You explained it very cool way. So I have to digest it and I did also. Thankkkkk youuuuu veryyyyy much :) :):D -- Posted via http://www.ruby-forum.com/.