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"


-- 
Posted via http://www.ruby-forum.com/.