From: "Mark J. Reed" Date: 2004-01-31T06:24:55+09:00 Subject: Re: principle of most suprise On Fri, Jan 30, 2004 at 08:25:08PM +0000, tony summerfelt wrote: > gah, ruby is doing it to me again: > > logline=String.new("+ 30 Jan 12:20:09 [3988] addr: x.x.x.x") > tda=Array[(logline.split(/\[\d+\]/))] > tda.first I believe the problem here is that split RETURNs an array. You're creating a new array out of what is already an array, and therefore getting a new array containing one element, which is an array. Just do tda = logline.split(/.../) -Mark