I want to copy one hash to a new hash and use it later. The previous one will change and I do not want to use the changed one.
I have done:
hash_2 = Hash.new()
hash_2 = hash_1.clone
When hash_1
changed, hash_2
is also changed, and I cannot figure out what I am doing wrong.