in reply to Re: Q on $var = \$var;
in thread Q on $var = \$var;
But that doesn't help with a longer circular chain; you need to pick the one element of the chain that has an external reference and weaken the preceding element's pointer to it.$self->{next} = $next; weaken($self->{next}) if $self == $next;
|
|---|