From: Anurag Priyam Date: 2011-02-24T14:40:33+09:00 Subject: Re: a, b = Array.new(2).map!{|x| data.dup} > 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, which might result in an unexpected side effect. x = "foo" a, b, c, d, e = [x.dup] * 5 puts a #=> "foo" b << " bar" puts a #=> "foo bar" -- Anurag Priyam http://about.me/yeban/