libdata-clone-perl

Perl module for polymorphic data cloning
  https://metacpan.org/release/Data-Clone
  0
  no reviews



Data::clone does data cloning, i.e. copies things recursively. this is smart so that it works with not only non-blessed references, but also with blessed references (i.e. objects). when clone() finds an object, it calls a clone method of the object if the object has a clone, otherwise it makes a surface copy of the object. that is, this module does polymorphic data cloning.

although there are several modules on cpan which can clone data, this module has a different cloning policy from almost all of them.