From: Guaracy Monteiro Date: 2002-08-20T04:23:04+09:00 Subject: Re: local variable bug ----- Original Message ----- From: "Email55555" > I am newbie in Ruby, I cannot find the bug on my financial program. > The question is related to local variable in block. > Here is a quick example: > > a = 5000 > r = 0.06 > p = 100 > (1..5).each {|i| > puts "#{i}\t\#{a}\t#{a*r}\t#{p}" # <-- the #{a} is not print > correctly, why? Delete '\' before '#' #{i}\t\#{a}... => #{i}\t#{a}... Guaracy =================== HP: www.guaracy.cjb.net