From: Niko Schwarz Date: 2001-11-15T04:58:07+09:00 Subject: [ruby-talk:25212] Re: Hash clone GOTO Kentaro wrote: > Array#dup or Hash#dup does `shallow copy'. Right.ok, after i thought a few times about this sentence of yours, i figured a flat copy is all i need, but i cant copy the array, i need to store ints directly. so i split my hash into two hashes, which only store ints now, and then cloned the array "by hand", like this: clone = hashs.map { |el| el.clone } and well, that works fine now =) thank you for your help =) =) regards, nick -- If little green men land in your back yard, hide any little green women you've got in the house. -- Mike Harding, "The Armchair Anarchist's Almanac"