From: William James Date: 2006-03-07T15:53:40+09:00 Subject: Re: Help - just a few lines of code needed William James wrote: > the_list = gets(nil).split If your strings can contain spaces, change to the_list = gets(nil).split(/\n+/)