From: Harry Kakueki Date: 2009-09-18T17:07:14+09:00 Subject: Re: simple question: compare words On Fri, Sep 18, 2009 at 4:08 PM, Ahmet Kilic wrote: > 7stud -- wrote: >> Ahmet Kilic wrote: >>> for xa in a >>> $ye= xa >>> end >> >> That is the equivalent to: >> >> $ye = "ali" >> $ye = "bel" >> $ye = "del" >> $ye = "en" >> >> which gives you: >> >> puts $ye >> >> --output:-- >> "en" > > Yes, I want that. No, you don't. :) You go through all of them but you don't do anything with them. Then you compare only the last one to the elements in the other array. Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/ruby/list.html