From: Justin Johnson Date: 2002-07-24T20:27:41+09:00 Subject: Eval question I've got a question about 'eval'. In the following example (which doesn't work by the way) where does 'val' live? class MyClass def tryIt( str ) eval str p val end end a = MyClass.new a.tryIt( "val = 10" ) I was initially thinking that 'val' would be treated as a local to 'tryIt'. Maybe 'eval' works a little differently to how I thought it might? -- Justin Johnson.