From: matz@... (Yukihiro Matsumoto) Date: 2001-03-04T23:45:09+09:00 Subject: [ruby-talk:11973] Re: newbie eval question Hi, In message "[ruby-talk:11965] newbie eval question" on 01/03/04, Colin Steele writes: |I want a piece of eval'd code to create a local variable in the |eval'ers context... How do I do that? Ruby's local variables are treated statically (i.e. compile time), so that things added later by eval are invisible from code outside of eval(). try: foo = 0 eval("foo=7") puts foo Or eval("foo=7") puts eval("foo") matz.