On Monday 24 November 2003 11:51, T. Onoma wrote:
> In such a simple case, of course. But consider:
>
>   a=[1,2,3]
>   eval "def z; p a; end;  z"

But... this doesn't work in Ruby anyway.  'a' isn't in scope inside the 
method.  Cut, paste, and run:

	a = [1,2,3]
	def z
		p a
	end
	z

Why should method definitions in evals behave any differently?

--- SER