From: Isaac Toothyxdip Date: 2008-02-21T05:19:21+09:00 Subject: Re: displaying user inputed arrays Im not really wanting it to take only the first 5 words i want it to say something if it is more then 5 words print "Please type in 5 words with spaces inbetween them: " answered = false while not answered a = [gets.chomp.split] if a.length > 5 puts "Type in FIVE words no more:" else answered = true end end but i know that the gets.chomp.split is wrong i have tried many ways including split and index and indexes and rindex and many other ways but i cant seem to get it to work. Im either using the wrong method or im not following the correct syntax of the code. Maybe now you have an idea of what im trying to do. Im going to sleep for a little because im sick but im once i wake up im going to keep working on it to try to find a way but any help will be very much appreciated! Thanks in advance -- Posted via http://www.ruby-forum.com/.