From: Raj Singh Date: 2009-01-19T06:35:31+09:00 Subject: Why eval is not failing in the third case ( c3) >> c1 = 'hello' >> eval c1 NameError: undefined local variable or method `hello' for main:Object >> c2 = 'hello #{hi}' => "hello \#{hi}" >> eval c2 NameError: undefined local variable or method `hello' for main:Object >> c3 = '#{hi} hello' => "\#{hi} hello" >> eval c3 => nil My question is why the eval of c3 is returning nil. It should fail saying that undefined local variable just as it did in the case of c2 ? -- Posted via http://www.ruby-forum.com/.