From: Samantha Date: 2007-03-01T04:52:44+09:00 Subject: Re: Stepping out on a Limb - some very ugly code ------=_Part_46042_15568339.1172692352066 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2/28/07, Samantha wrote: > > > > On 2/28/07, Sebastian Hungerecker wrote: > > > > > > How about something like this instead? > > > > data=Hash.new > > ["street number","street name","city name","state","zip code"].each do > > |i| > > puts("Please enter your #{i}: ") > > data[i]=gets.chomp > > end > > > > > HTH, > > Sebastian > > -- > > NP: Anathema - Suicide Veil > > Ist so, weil ist so > > Bleibt so, weil war so > > Okay ... I wrote that up and it inputs things, but I have a few questions... 1) After getting the information from the user, I want to be able to output the information on the screen and get a confirmation. I'm assuming that I do that with: contact_info.each do |i| puts i end Yes? So... 1) How do I get this to be 'pretty' or formatted nicely like the original code, and 2) How do I get the state abbreviation as all upcase? -- Samantha http://www.babygeek.org/ "Beware when the great God lets loose a thinker on this planet. Then all things are at risk." --Ralph Waldo Emerson ------=_Part_46042_15568339.1172692352066--