oh ok thats right it has to be an object in order to be useful. The book i am reading didnt mention that in the entire chapter on arrays. thats why i didnt get it. Michael Gorsuch wrote: > When you call 'info[]', the '[]' piece is actually trying to invoke a > method > in the object. > > since 'info' is not delcared as an object, Ruby has no clue what to do. > > Now, if you did this: > > info = [] > > or > > info = Array.new > > You'd be better off. > > As for stuffing 'info' with data, you can do this: > > info << gets.comp > > and > > info.sort! > > Does this help you at al -- Posted via http://www.ruby-forum.com/.