From: "List.rb" Date: 2008-11-26T00:29:26+09:00 Subject: Re: Chris Pine tutorial assistance chapter 7 sort data without use of .sort method I'm ashamed to say I recently learned this, but thought is share just in case you didn't know.. Instead of puts something.inspect You can use p something Quite a time saver On Nov 25, 2008, at 10:15 AM, Giampiero Zanchi wrote: > I am a beginner too; > I use to intermix my code with a lot of 'puts'; I think you could do > it > as well; > your input part is ok; you can view it by means of > > puts word_array.inspect > >> words_array = [] >> >> loop do >> input = gets.downcase.chomp >> break if input.empty? >> words_array << input >> end > > so, try insering some more puts in your script > I cannot understand the sort algorithm, so I cannot help, sorry > > -- > Posted via http://www.ruby-forum.com/. >