From: "Emil Enemærke" Date: 2012-01-16T23:17:33+09:00 Subject: global array Hi, Im trying to make an array a global array, but I cannot make it work. Here is what I have: ------------ hostname=server1 server = Hash.new { |hash, key| hash[key] = [] } service_name="service name" service=service1 if server.key?(hostname) server[hostname]=Hash.new { |hash, key| hash[key] = [] } server[hostname]["service_name"]=Array.new server[hostname]["service_name"]="service#{service_counter}" server[hostname]["service_name"]=[x,x,x] end ----------------- I have tried with $server[hostname]["service_name"]=[x,x,x] $server[hostname]["service_name"]=Array.new but that does not work... Any help is appreciated. Kind Regards Emil Enemækre