Fwd: Ruby Quiz Submission


#1

Begin forwarded message:

open(“http://www.google.com/search?q=weather+#{ARGV.shift}”) do |page|
page.readlines.join =~ /Weather</b> for (.?)</b>.>(\d+)
°F/
puts “The temperature in #{$1} is #{$2} degrees F.”
end

Begin forwarded message: