Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Local Copy of a member variable

by holli (Abbot)
on Oct 20, 2005 at 17:52 UTC ( #501749=note: print w/replies, xml ) Need Help??

in reply to Re: Local Copy of a member variable
in thread Local Copy of a member variable

From the docs of Storable:
There is a Clone module available on CPAN which implements deep cloning natively, i.e. without freezing to memory and thawing the result.
So I'd recomment Clone or Scalar::Util::Clone. There is also Clone::Any which is an interface for the existing clonecapable modules.

Of course, Storable has the advantage that you can save your structures to disk (including code references).

holli, /regexed monk/

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-02-29 04:21 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (128 votes). Check out past polls.