From: "Peña, Botp" Date: 2007-11-21T13:14:16+09:00 Subject: Re: How to copy arrays? On Behalf Of Martin Durai: # Thank you daniel, but my functionality is not return as a array. # I need to copy a source array to a destination array. i think you only want to copy a part (the whole is trivial) of the array and insert it to another array, no? a #=> [1, 2, 3, 4] b #=> [5, 6, 7, 8, 9, 10] a[1,1] #=> [2] b[2..-2] #=> [7, 8, 9] a[1,1]=b[2..-2] #=> [7, 8, 9] a #=> [1, 7, 8, 9, 3, 4] or maybe just plain insert it, a[0] #=> 1 b[0,2] #=> [5, 6] a[0]=b[0,2] #=> [5, 6] a #=> [[5, 6], 7, 8, 9, 3, 4] kind regards -botp