From: "Parv G." Date: 2008-10-04T13:15:08+09:00 Subject: Re: content of an array gets cleared > tempArray = array.dup #=> make a shallow copy. > array.clear > puts tempArray.length #=> 5 That should do the trick for me. Thanks a lot! Parv -- Posted via http://www.ruby-forum.com/.