From: Tanaka Akira Date: 2002-01-01T16:08:58+09:00 Subject: [ruby-talk:29937] Re: Ruby multi-dimensional Hash question?---Any one out there willing to give this questions a try? In article <1009851494.797529.11787.nullmailer@ev.netlab.jp>, matz@ruby-lang.org (Yukihiro Matsumoto) writes: > You've got [ruby-talk:29787]. Alternative solution is fetch Ruby > 1.7.2 and do > > MyHash = Hash.new{Hash.new} irb(main):001:0> RUBY_VERSION "1.7.2" irb(main):002:0> MyHash = Hash.new{Hash.new} {} irb(main):003:0> MyHash[0][1] = 2 2 irb(main):004:0> MyHash[0][1] nil I think it is not solution because the assignment doesn't modify MyHash. -- Tanaka Akira