David Springer wrote:
> after some inspiration from Luc I was able to come up with this:
> 
> textlist = ["Apple", "Orange", "Lemon", "Grape", "Orange",
> 
> (0..textlist.length-1).select {|i| textlist[i] == "Orange"}[1]

Second day with Ruby, huh...
-- 
Posted via http://www.ruby-forum.com/.