Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Prevent object from cloning

by menth0l (Monk)
on Oct 18, 2010 at 09:06 UTC ( #865899=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyPackage;
    use threads;
    ...
    {
        my $o1 = new MyPackage;
    }
    
  2. or download this
    ERROR: Attempt to DESTROY object ID 1 of class MyPackage twice
    ERROR: Attempt to DESTROY object ID 1 of class MyPackage twice
    Scalars leaked: 1
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2015-07-07 05:24 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 (87 votes), past polls