Am Mittwoch, 28. Februar 2007 18:56:25 schrieb Samantha:
> puts("Please enter your street number: ")
> street_number = gets.chomp!
> puts("Please enter your street name: ")
> street_name = gets.chomp.capitalize!
> puts("Please enter your city name: ")
> city_name = gets.chomp.capitalize!
> puts("Please enter your state: ")
> state_name = gets.chomp.upcase!
> puts("Please enter your zip code: ")
> zip_code = gets.chomp!

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