Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 lurking in the Monastery: (3)
As of 2014-10-25 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (141 votes), past polls