Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Object::Clone a simple class providing a cloning method

by IlyaM (Parson)
on Nov 26, 2001 at 05:36 UTC ( #127459=note: print w/replies, xml ) Need Help??


in reply to Object::Clone a simple class providing a cloning method

You can clone objects with CPAN module Storable.

use Storable (dclone); ... my $obj2 = dclone($obj1);

It should be faster since Storable is XS (though I haven't done any benchmarks so I can be wrong).

Another option is CPAN module Clone. I've never tried it myself so I can't say anything about it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://127459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2021-12-07 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (33 votes). Check out past polls.

    Notices?