But not in this case:

$globvar=Array.new()
myHash=Hash.new()
myHash["oneValue"]="mygenericvalue"
$globvar[0]=myHash

localvar=$globvar.dup

localvar[0]["oneValue"]="mylocalvalue"

puts $globvar
-- 
Posted via http://www.ruby-forum.com/.