From: ts Date: 2003-12-15T21:25:41+09:00 Subject: Re: Q: How to convert hashed parameters to local variables? >>>>> "D" == David A Black writes: D> No it doesn't. Well, strictly speaking it does, since "current D> scope" means its own block, which it then exits causing the D> variables to go out of scope. But if by "current scope" you mean D> the scope from which eval was called, then, as my example shows, D> the variables are not created in that scope. not understood, sorry svg% cat b.rb #!/usr/bin/ruby args = { "a" => "hello" } str = "" args.each do |key,val| str << "#{key}='#{val}'\n" end eval str eval 'puts a' svg% svg% b.rb hello svg% Guy Decoux