in reply to deep_copy objects question

You need to bless the copy with the class the original was blessed into. You might want to take a look at Scalar::Util and the blessed() function, because not all objects are hashrefs (mine tend to be arrays) and, even if all your objects were hashrefs, then you'd assume all hashrefs were objects.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested