From: mrchameleon@... (Chris Reay) Date: 2002-08-14T17:31:24+09:00 Subject: Re: Is this array operation correct? > > > > I've tried this: > > > > a = Array.new(3,[]) => [[], [], []] > > a[1].push(3) => [[3],[3],[3]] > > > > You may be wanting this ... a = (0...3).collect { Array.new } a[1].push(3) => [[],[3],[]] Yours Chris