From: Robert Klemme Date: 2009-08-08T01:30:09+09:00 Subject: Re: How can I copy an array and its elements? (call by value) On 07.08.2009 17:47, Janus Bor wrote: > Thank you both, that's exactly what I'm looking for! > Just note that #dup and #clone do a shallow copy, so if you modify objects in the copy this change will also be seen via the original Array. Depending on what you do #map might be more appropriate. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/