Li Chen wrote:

> Paul Lutus wrote:
>> 
>> It would be very helpful is you were to post the code you used to get
>> this
>> result.
>> 
> 
> My script is about 140 lines. I am not sure if I post it.

Did my previously posted code example solve your problem? If you will be
specific enough about the problem and its roots in your Ruby code, we might
be able to resolve the issue without examining all your source.

You should be able to create an abbreviated version of your program that
simply creates and displays the problem array. That would allow an easy
analysis and fix.

-- 
Paul Lutus
http://www.arachnoid.com