On 6/3/07, Michael Glaesemann <grzm / seespotcode.net> wrote: > > On Jun 3, 2007, at 9:40 , Joshua Ballanco wrote: > > > Robert Dober wrote: > >> Have been there, but this is not a valid solution, sorry to say so :( > >> you gotta get rid of the quotes in the output. > > Crud, I just tested at http://golf.shinh.org/p.rb?FizzBuzz and you're > > right... > > > > For those interested, the code was: > > > > 1.upto(?d){|i,x|i%5>0||x=:Buzz;p i%3>0?x||i:"Fizz#{x}"} > > s/p/puts/ and you get the proper solution: if only 'puts'.length were 'p'.length ;) > > 1.upto(?d){|i,x|i%5>0||x=:Buzz;puts i%3>0?x||i:"Fizz#{x}"} > > > Michael Glaesemann > grzm seespotcode net > > > > -- You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw