From: lith Date: 2009-11-14T20:25:22+09:00 Subject: Re: how to copy array in ruby > I tried ur solution but it is also not working :( > > I am unable to figure out the trick In order to help us to figure out what is the problem, you might want to post a code snippet demonstrating the defect and explain what how you would expect ruby to behave. Array#dup creates a copy of the array, not of the elements in the array, aka a shallow copy.