From: Kristof Bastiaensen Date: 2004-04-21T21:59:05+09:00 Subject: Re: binding - how to get current script? On Wed, 21 Apr 2004 14:13:32 +0200, Szymon Drejewicz wrote: > Kristof Bastiaensen wrote: > >> There is :-) > > no, unfortunately it works that way only in IRB not in Ruby script. > > :-] Oh... That's strange! So eval creates a new binding for new local variables, instead of the given binding. I wonder if that is the intended behaviour... Maybe it could be a solution to declare the variables that you need: fname, sname, age = nil The variables that you don't need will be inside eval, but you don't need them anyway.