Topher Cyll wrote:
It's not one line
It is now. ;-)
[..code..]
Who says Perl wins at one liners?
Think this is possible in Perl? :)
http://autognosis.org/code/google-rocks-sucks-o-meter.rb
After Ben beat me to the punch with getting the first one out, I decided
to take the one I was working on to 11 and change it to a one liner
without using any semicolons. Boo-yah!
$ ruby -ropen-uri google-rocks-sucks-o-meter.rb dreamhost
Rocks/sucks ratio for dreamhost is 1.6:1
My only "cheat" to get it on one line is that it needs -ropen-uri on the
command line. I guess I could put in another lambda layer, but my brain
hurts now.
Btw, pdx.rb rocks!
$ ruby -ropen-uri google-rocks-sucks-o-meter.rb pdxruby
Rocks/sucks ratio for pdxruby is 3.5:1
-Isaac
_______________________________________________
PDXRuby mailing list
[email protected]
IRC: #pdx.rb on irc.freenode.net
http://lists.pdxruby.org/mailman/listinfo/pdxruby