From: Andrea Dallera Date: 2010-04-08T03:02:38+09:00 Subject: Re: Dissapearing data from array >From what i've understood your aim is to "detach" the reference of the inserted element from the original one. That can be done with z.clone, in your example it will look like this: a = %w(a b) z = %w(1) a.insert(1, z.clone) z.clear puts a a 1 b -- Andrea Dallera http://github.com/bolthar/freightrain http://usingimho.wordpress.com On Thu, 2010-04-08 at 02:47 +0900, No辿 Alejandro wrote: > a.insert(1, z) > puts a