Current Temperature (#68)

My one-line solution.
Just join the below 4 lines become one single line; even no need space
when join lines.

require’open-uri’;puts (ARGV.size !=1)?“Usage: #$0 ”:
("The temperature in #$1 is #$2 degrees F."if
%r|Weather for (.?).?(\d+)°F|=~
open(“temperature - Google Search”){|f|f.read})

Semi-colons, that is so cheating. :slight_smile:

| Semi-colons, that is so cheating

require(“open-uri”) && puts((ARGV.size !=1) ? “Usage: #$0 ”:
(“The
temperature in #$1 is #$2 degrees F.” if %r|Weather for
(.?).?
(\d+)°F|
=~open(“temperature - Google Search”){|f|
f.read}))

This is without semi-colons :slight_smile:

here are more things in heaven and earth,
horatio, than are dreamt of in your philosophy.


Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
DVD vergini: acquista online a prezzi vantaggiosi!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4589&d=2-3