in reply to Dump, Dup or Copy an object

What you want is called a "deep copy" or "clone". See my node here for some modules that apply here.

Update:
You might also want to have a look at Class::Cloneable if your structure is actually an object.


holli, /regexed monk/