From: Zac Elston Date: 2007-03-31T01:54:47+09:00 Subject: newbie, hash or 2dArry I'm lost or just tired from guessing. I need to make an hash I can call by hostname as the key and some random amount of data after that as the values. now a hash works great for 1 to 1 maps (h[serverX] ==> result) but I need h[serverX][query|result|time] so how would I write a hash that would give me access to in: h[host_to_query]["query"]] = @query h[host_to_query]["result"]] = queryhost(host_to_query,@query) out: for h.each |host| puts h[[host]["result"]] thanks zaq -- Posted via http://www.ruby-forum.com/.