From: Olaf Klischat Date: 2002-06-06T18:22:32+09:00 Subject: Re: eval and local variable ts writes: > At runtime, eval will create a local variable, but when ruby execute the > lines `p foo' it will try to call the method #foo, because this is what it > has compiled. Then at least the error message is confusing, isn't it? > >>>>> "P" == Park Heesob writes: > P> p foo #--> foo.rb:4: undefined local variable or method `foo' for Olaf -- Olaf Klischat | TU Berlin computer science Oberfeldstrasse 132 | 12683 Berlin, Germany | phone: +49 30 54986231 | e-mail: klischat@cs.tu-berlin.de