In Ruby
2.1.2 :068 > a=1
=> 1
2.1.2 :069 > eval("a=4")
=> 4
2.1.2 :070 > a
=> 4
2.1.2 :071 > eval("b=4")
=> 4
2.1.2 :072 > b
NameError: undefined local variable or method `b' for main:Object
So,the question is why the variable 'b' will be 'undefined local variable or method' but the variable 'a' equals 4 ?