Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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?
[Tux]: test
[jedikaiti]: failed
[Tux]: No, it PASS'ed (testing patches to pm-cb-g)
[Tux]: http://tux.nl/ Files/201709191837 44.png

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-09-19 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (225 votes). Check out past polls.

    Notices?