From: Michael Gorsuch Date: 2006-05-15T07:51:54+09:00 Subject: Re: begining programmer questions ------=_Part_28661_12928243.1147647112341 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ah! Take a look here: "info =3D gets.chomp" You've just changed 'info' into a String. Instead, do this: "info << gets.chomp" This means 'get some stuff, chomp it, and add it to the info Array' On 5/14/06, corey konrad <0011@hush.com> wrote: > > Michael Gorsuch wrote: > > Just to be clear, will you please send your current source. I'd be gla= d > > to > > look at it. > > > this is it: > > def input > puts "Enter some info" > info =3D [] > info =3D gets.chomp > while info !=3D "exit" > info =3D gets.chomp > end > info.sort > puts "#{info}" > end > > > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_28661_12928243.1147647112341--