I am afraid that is incorrect :(
ruby -ve '[5, 7].each_with_index.each {|a| p a}'
ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux]
5
7



-- 
The best way to predict the future is to invent it.
-- Alan Kay