[Israel.pm] Returning a copy of an object

Ephraim Dan E.Dan at F5.com
Thu Jun 7 04:32:49 PDT 2007

> Yossi wrote:
> Is there a simple && fast way to return a copy (deep copy !) of the
original object ?

Have a look at Storable's dclone() method - look into the CODE REFERENCES section, which I presume you'll need

Haven't benchmarked it myself, but I would expect it to be muchly much faster than Data::Dumper

Let us know what you find


More information about the Perl mailing list