Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 about the Monastery: (8)
As of 2016-10-01 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (5 votes). Check out past polls.