Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: method chaining fails where separate method calls succeed in DBIx::Simple

by Eliya (Vicar)
on Aug 04, 2011 at 18:28 UTC ( #918622=note: print w/ replies, xml ) Need Help??


in reply to Re: method chaining fails where separate method calls succeed in DBIx::Simple
in thread method chaining fails where separate method calls succeed in DBIx::Simple

...you have a circularity, which breaks Perl's reference-counting GC scheme

But isn't this what Scalar::Util::weaken() is for — as (somewhat indirectly) hinted at in the OP ?

(Though I suspect that what Juerd meant with "it's safer to just have a string" is that if you take a copy of a weak ref, the copy will be strong again, which could potentially lead to the problem you mention...)

PS: I'm not the original poster.


Comment on Re^2: method chaining fails where separate method calls succeed in DBIx::Simple

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-07 04:09 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