Keith Carter wrote:
> Am I missing something with eval? Why does this code not work?

Maybe it's a scoping issue with where you're running your code...works 
fine for me in irb:

>> eval("foo = 1")
=> 1
>> foo
=> 1


-- 
Posted via http://www.ruby-forum.com/.