From: Jenda Krynicky Date: 2007-06-12T21:51:00+09:00 Subject: Re: how to make a[2][2][3]=4 work? gz zz wrote: > a=Hash.new{|h,k| > h[k]={} > } > > p a[1]=1 > > a[2][1]=2 > #a[2][2][3]=4 > p a Sure. Use Perl. Oops, sorry. I forgot, datastructure autovivification is wrong, variables springing into life (or maybe not, read the rest of the method to find out) inadvertently are good. Jenda -- Posted via http://www.ruby-forum.com/.