Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Copy package Instance

by ISAI student (Scribe)
on Jul 19, 2011 at 09:24 UTC ( #915382=perlquestion: print w/ replies, xml ) Need Help??
ISAI student has asked for the wisdom of the Perl Monks concerning the following question:

This may be a very stupid question, but, none the less, I need an anwer to it. I have a certain module, which I have created. I create an an instance of it, it's name is $inst1. Then I want to create a copy of $inst1's internal data, accessed by $inst2. Now, the issue is, that to the best of my knowledge, $inst1 is just a pointer, so copying the pointer makes very little sense, for this usage. Is there a generic "copy instance" for PERL5.8 or above? Thanks,

Comment on Copy package Instance
Replies are listed 'Best First'.
Re: Copy package Instance
by Anonymous Monk on Jul 19, 2011 at 09:35 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-09-01 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (366 votes), past polls