Offhand, I'm not sure of finding this from pure Perl, though it's theoretically very easy from XS. You might try weak references in 5.6.0 and later, though (see Scalar::Util). Otherwise, matts has a good article on Proxy Objects that can solve this problem.
I'd probably use weak references, if I were you.
In reply to Re: Reference Count
by chromatic
in thread Reference Count
by tadman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |