On Thu, Aug 26, 2010 at 2:35 PM, Oscar Lok <jayaoscarlok / yahoo.com.my>wrote:

> Dear Sir,
>
> May I know that why the zz[0]=="s" return false, please?
>
> aa = '"s";"d";"f"'
> zz = aa.split(";")
> zz[0]=="s"
> false
>
> Thanks
>
> Regards
> Oscar
> --
> Posted via http://www.ruby-forum.com/.
>
>
You output an inspected view of your objects with the method p, that should
help you see the difference.

aa = '"s";"d";"f"'
zz = aa.split(";")
p zz[0]
p "s"