From: Colin Steele Date: 2001-03-04T12:10:19+09:00 Subject: [ruby-talk:11965] newbie eval question I want a piece of eval'd code to create a local variable in the eval'ers context... How do I do that? I tried: eval("foo=7", binding) puts foo Which results in: test.rb:2: undefined local variable or method `foo' for # (NameError) Any help is much appreciated. -- Colin Steele CEO, WebG2 colin@webg2.com www.webg2.com Main: 804-971-4777 Fax: 804-220-4652