On Thu, 31 Mar 2005, Eric Hodel wrote: > people.each_with_index do |person, i| > puts "First person: #{person} if person == people.first > row_class = i.even? ? "row1" : "row2" > puts "Last person: #{person} if person == people.last > end > > How about that? Nope. Only works if first and last items are unique. people = %w[George John Thomas George Bill George] -- Relm