From: Emmanuel Touzery Date: 2003-10-03T19:48:17+09:00 Subject: Re: hash of hashes Paul Argentoff wrote: >On Friday 03 October 2003 14:04, Paul Argentoff wrote: > > > >>How can I create $Subject for future population? >> >> > >Let's put it this way: I need to create a nested hash which will be populated >later by referencing the keys in the subhashes. How can I do this? > > not sure i understand your question. does this help you? irb(main):001:0> a = {} {} irb(main):002:0> a["blue"] = {} {} irb(main):003:0> a["blue"]["red"] = 3 3 irb(main):004:0> a["blue"] {"red"=>3} irb(main):005:0> a["blue"]["red"] 3 irb(main):006:0>