From: Thomas Luedeke Date: 2006-11-18T02:17:00+09:00 Subject: Referncing values of local variables I apologize in advance, because I know this gets asked again and again (and again.....) by newbies, but my searches don't show a clear answer, and none of my attempts work. This should be simple. I want to define a constant, a = 3 then reference the value of a in arguments like, temp_array = Array.new(a) such that the temp_array is assigned a size of 3. This always seems to result in complaints about undefined local variable or methods. Eval doesn't seem to make it work. What I am doing wrong?? -- Posted via http://www.ruby-forum.com/.