From: Isaac Toothyxdip Date: 2008-02-21T02:08:58+09:00 Subject: Re: displaying user inputed arrays Ok i tried using .length to check how many words the user inputed. It works if you just do it like this: a = [ "a", "b", "c", "d" ] if a.length > 3 puts "yeah" else puts "no" end but how come it doesnt work like this a = [gets.chomp.split] if a.length > 3 puts "yeah" else puts "no" end i think its cause of the split but what other alternatives are there? -- Posted via http://www.ruby-forum.com/.