From: David Garamond Date: 2004-01-21T00:40:02+09:00 Subject: deep clone I need to produce deep copies of an object structure (the elements will only be hashes, arrays, symbols, strings, numbers, true/false, nils; and not "complex" stuffs like File object or database connection handles). Will this do fine? def deep_clone(obj) Marshal.load(Marshal.dump(obj)) end Any gotchas I should know? -- dave