From: timr Date: 2008-09-01T15:24:49+09:00 Subject: Re: Another Chris Pine Tutorial Question words = [] loop do #loop allows one to do an indefinite amount # of something--must set an exit #inside of the loop. incoming = gets if incoming == "\n" then #if a blank line is entered, we are done. #Sort and puts the list. puts words.sort exit else words << incoming #if data is entered, add it to the array of words. end end #=> alphabet soup bananas coca cola hot dogs kool aid lettuce milk potatoes spinach sugar Tim Rand