3/8 build a word array


#1



i don't know why this code is not working


puts "text please: "
text = gets.chomp
words = text.split(",")


#3

@thehazard3008,

if you use split(",")
you want to split a string which is using the comma-,
as a separator
Thus
a text like "a,b,c"
would become
[a,b,c]

If have a normal text like
text= "This is a text"
you have to use
text.split(" ")