From: Keith Carter Date: 2008-01-24T07:13:01+09:00 Subject: Re: Help with eval Hm. You're right, that did work. How come the second bit below doesn't work? Loading development environment (Rails 2.0.2) >> eval("foo = 1") => 1 >> foo => 1 >> begin ?> eval("bar=1") >> bar >> end NameError: undefined local variable or method `bar' for # from (irb):5 >> -- Posted via http://www.ruby-forum.com/.