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

Re^3: What's the weaken here for?

by Anonymous Monk
on Jan 20, 2012 at 03:38 UTC ( #948877=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
       my $foo = {}; # ref count 1
    ...
    # it refers to it self, its self-referential,  a circular reference
    # for memory held by $foo to be released after $foo goes out of scope
    # $foo->{foo} has to be weakened, the reference count decreased
    
  2. or download this
    sub once {
      my ($self, $name, $cb) = @_;
    ...
    
      return $wrapper;
    } 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2015-07-03 08:39 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 (49 votes), past polls