From: Daniel Waite Date: 2006-10-13T09:36:04+09:00 Subject: Re: Hash & keys... I think you're getting hung up on this part: S辿bastien Wautelet wrote: > irb(main):004:0> v==v2 > => true Yes, v and v2 are equal. But that is irrelevant with regards to your hash. Now, if you had to objects that were identical (not equal, but identical) then it would work: s1 = 'string' s2 = s1 h = Hash.new h[s1] # 'string' h[s2] # 'string' s1.upcase! h[s2] # 'STRING' h[s1] # 'STRING' Hope that helps. -- Posted via http://www.ruby-forum.com/.