Damian Conway <[EMAIL PROTECTED]> writes:

>    
>    > That's cool. I can also see calling a package's CLONE sub if you're
>    > cloning something blessed into it.
> 
> I like it. And CLONE is preferred to the specified (2nd arg) handler.

The newly released Storable-0.7 support this.  Currently deep cloning
is implemented by thaw(freeze($obj)) and classes can provide
STORABLE_freeze and STORABLE_thaw methods to override the cloning
behaviour for their objects.

Regards,
Gisle

Reply via email to