From: botp Date: 2011-02-24T15:11:36+09:00 Subject: Re: a, b = Array.new(2).map!{|x| data.dup} On Thu, Feb 24, 2011 at 1:40 PM, Anurag Priyam wrote: >> ok, try also something like, >> >>  a,b,c,d,e =[x.dup]*5 > > That will cause a, b, c, d, e to point to the same objects, indeed. but they will not point to or clobber x > which might result in an unexpected side effect. indeed. but it may have a good effect too. the user is working on graphics. let's just see if user has a need for it... best regards -botp