From: ts Date: 2003-08-12T22:39:19+09:00 Subject: Re: hash default value >>>>> "E" == Emmanuel Touzery writes: E> irb(main):003:0> myOtherHash = Hash.new({}) You must use the block form svg% ruby -e 'has = Hash.new {|h,k| h[k]={}}; has["blue"]["red"] = 1; p has' {"blue"=>{"red"=>1}} svg% E> PS: don't think it matters, but i'm running ruby 1.6.7 (2002-03-01) it will not work with 1.6.7 Guy Decoux