My point in 3 posts already is that it's not possible to answer a fuzzy question, because different readers will have different use cases in mind.
That's a bad ground to discuss weaken thoroughly. Bad question, useless answer.
A conclusion like
> > > But there's also a problem with using weaken.
looks problematic to me.
FWIW: The only general advice I found in the perldocs on weaken is to use it on the shorter lived ref.
Creating a decent discussion/tutorial for weaken would be nice.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^4: Should I use weaken on an object attribute containing a reference to an object which contains reference back to original object?
by LanX
in thread Should I use weaken on an object attribute containing a reference to an object which contains reference back to original object?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |