From: Nikolai Weibull Date: 2005-05-27T07:08:30+09:00 Subject: Re: hash of hash and complex data structure ngoc wrote: > How in ruby similar to perl > $a{$b}{$c}{$d} = 1; Wasn’t this question asked but yesterday? You may find a lot of useful information on rubygarden.org and ruby-talk.org. The answer is a[b][c][d] = 1 > push @{$a{$b}} = 1; a[b] << 1 or a[b].push 1 or a[b].push(1) (Parentheses are - somewhat - optional.) Enjoy, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}