in reply to How to duplicate objects?

You can do something like this, also, assuming the object is implemented as a hash reference:
my $copy = bless { %$original }, ref $original;
Note that this does not clone any object referenced in the $original (those references will just get copied), so this does the minimal amount of work - while the Storable solution above copies everything it can find.

Quite often, what's actually needed is something in between these two extremes, which means you'll probably end up with the objects providing their own clone() and/or freeze() method(s).