Dave Thomas <Dave / pragmaticprogrammer.com> wrote: > You could use each_with_index: Sorry I should've added this to my previous post. Is each_with_index a very new feature. It's not mentioned in the Ruby Language Reference Manual (Ver 1.4). If so, what other undocumented features am I missing out on? Thanks, Farrel -- |DNA Research Group mailto:flifson / cs.uct.ac.za |Dept. of Computer Science http://www.cs.uct.ac.za/~flifson |University of Cape Town +27-21-650-3799