From: Joshua Ballanco Date: 2008-03-04T09:43:26+09:00 Subject: Re: String to Object name? Mariko C. wrote: > I'd like to change a string, for example, "something" and turn it into > an object reference. For example: > > I have string "something," now I'd like to take that and turn it into > > something = "some other string" > > Is this possible? Thanks in advance for any help. Meta-programming to the rescue! #!/usr/bin/env ruby a = "aString" eval(a + " = 5") puts aString -- Posted via http://www.ruby-forum.com/.