I was wondering, i thought in Ruby you didnt have to declare variables 
but in this little exercise from the book i have the error i get is that 
the variable info is undeclared. Basically the exercise is to keep 
filling an array with user input until they choose exit and then the 
array is sorted and printed out, is that how i would go about doing 
that?

def input
  puts "Enter some info"
  info[] = gets.chomp
while info[] != "exit"
info[] = gets.chomp
end
info[].sort
puts "#{info}"
end

-- 
Posted via http://www.ruby-forum.com/.