From: gabriele renzi Date: 2005-05-26T07:00:18+09:00 Subject: Re: Multilevel hash aartist ha scritto: > With perl it's easy to write: > > $Q{$date}{$song_played} += 1 > > How I can accomplish the same thing with ruby? > > Thanks! > > http://pleac.sourceforge.net/pleac_ruby/index.html didn't help much > here. > >> q={'key'=>{'key2'=>1}} => {"key"=>{"key2"=>1}} >> q['key']['key2']+=1 => 2 >> q['key']['key2'] => 2