From: "Phil H." Date: 2013-03-30T01:01:49+09:00 Subject: Re: Nil or enter with no input Sorry I may have gotten it, check this out. # Building and sorting an array. array = [] puts 'Enter a word' word = gets.chomp while word != '' array.push word puts 'Enter a word' word = gets.chomp end puts array.sort -- Posted via http://www.ruby-forum.com/.