I want to use a for-each and a counter:
i=0 for blah in blahs puts i.to_s + \" \" + blah i+=1 end
Is there a better way to do it?>
As to your question about doing i++, well, you cannot do that in Ruby. The i += 1 statement you had is exactly how you're supposed to do it.
i++
i += 1