From: John W Higgins Date: 2009-06-04T01:49:12+09:00 Subject: Re: assign the array returned by String.split to a variable --000e0cd2e57c4821a8046b74705e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Jun 3, 2009 at 9:35 AM, Catsquotl wrote: > Hi > > > > what i like to do is have an array of the split arrays. > any ideas? > You would want something like this def create ary = @txt.collect{ |t| t.split(',') } end Basically collect takes your initial array and runs through each element and creates a new array based on the results of the block. John --000e0cd2e57c4821a8046b74705e--