From: Ahmet Kilic Date: 2009-09-18T16:08:42+09:00 Subject: Re: simple question: compare words 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. I want to compare them by one by with other words. Also, It is not Array it is String. because if I use $ye.class it gives me String and I got this error. undefined method `&' for "en":String -- Posted via http://www.ruby-forum.com/.