From: John W Higgins Date: 2009-06-29T14:32:01+09:00 Subject: Re: Push Inputted Words --000e0cd150a42f7db8046d75e7d5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Sun, Jun 28, 2009 at 9:59 PM, Scott Andrechek wrote: > I'm now using this: > > words=[] > word = 'any' > while word!= '' > words.push gets > word= gets.chomp > end > puts > puts words.sort > > but as you might notice this code will skip every second word to find a > matching variable for word :S > Try this http://gist.github.com/137478 John --000e0cd150a42f7db8046d75e7d5--