From: Evan Weaver Date: 2007-02-20T20:23:36+09:00 Subject: Re: Strange question: Convert string to array name It's very unusual to need to dynamically reference a local variable. In Ruby, local variables usually are highly, er, localized. An instance variable is much more frequently used in the way you describe, and you can access it, as Robert says, like so: >> @foo = "the value" => "the value" >> name = "foo" => "foo" >> instance_variable_get("@#{name}") => "the value" Evan Weaver -- Posted via http://www.ruby-forum.com/.