Hi,

Im trying to make an array a global array, but I cannot make it work.

Here is what I have:
------------
hostname=3Dserver1
server =3D Hash.new { |hash, key| hash[key] =3D [] }
service_name=3D"service name"
service=3Dservice1

if server.key?(hostname)
      server[hostname]=3DHash.new { |hash, key| hash[key] =3D [] }
      server[hostname]["service_name"]=3DArray.new
      server[hostname]["service_name"]=3D"service#{service_counter}"
      server[hostname]["service_name"]=3D[x,x,x]
end
-----------------

I have tried with=20
$server[hostname]["service_name"]=3D[x,x,x]
$server[hostname]["service_name"]=3DArray.new

but that does not work... Any help is appreciated.

Kind Regards
Emil Enem=E6kre=