Z
Zac Elston
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
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