From: Martin DeMello Date: 2003-10-04T14:33:21+09:00 Subject: Re: hash of hashes Joel VanderWerf wrote: > > hash_maker = proc do |h, k| > h[k] = Hash.new(&hash_maker) > end > > h = Hash.new(&hash_maker) > > h[1][2][3][4][5] = 6 > > p h # {1=>{2=>{3=>{4=>{5=>6}}}}} My head hurts :) That needs to go on the Ruby Idioms page. martin