From: Arthur Rats Date: 2009-09-01T09:23:10+09:00 Subject: Re: help on phps $$ equivalent in ruby its not quite right, can you see what I am doing wrong e.g. i've got a lot of fields - so a short version of my situation fields = [["somthing"]] fields.each{|x| eval "#{x[0]} = Someclass::Somemethod.new" } puts something.text="asdfasdfasdf" text is method from the Somthingclass that should work, but I get undefined variable for something.text -- Posted via http://www.ruby-forum.com/.