From: Brian Candler Date: 2004-10-10T01:05:47+09:00 Subject: Re: split file into 2D array On Sun, Oct 10, 2004 at 12:50:10AM +0900, Brian Candler wrote: > or else do puts a[1][0], a[1][1] to get the first useful element. I mean puts a[2][0], a[2][1] Since you initialized a=[[],[]] then you have: a[0] == [] a[1] == [] a[2] == ["word1", "word2"] etc.