Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Recursive copier

by btrott (Parson)
on Jun 18, 2001 at 21:48 UTC ( #89375=note: print w/ replies, xml ) Need Help??


in reply to Recursive copier

You could get the effect of a deep copy by serializing and deserializing a data structure, using some method of serialization. Eg. Data::Dumper or Storable.

Or you could also investigate the Clone module, which I've not seen before but which is on CPAN. It looks like it should do what you want:

use Clone qw(clone); my $b = clone($a);


Comment on Re: Recursive copier
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2015-07-29 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls