On Thu, Mar 20, 2008 at 4:44 AM, Pat Kiatchaipipat <hb.pat87 / hotmail.com> wrote:
> str= "ABCDE"
>  arr = Array.new

You really don't need to declare your type.  The arr = Array.new
statement is unnecessary.

>
>  arr = text.split ""

I'm not sure, but I think you meant arr = str.split ""

>
>  and how can I cambine array 'arr' into string again??

If the global $, is okay, you can just do arr.join, but if you can't
be sure, then arr.join ""

Todd