Have you looked at Devel::Monitor, Devel::WeakRef or Hash::NoRef? A brief CPAN search turned them up, and they may give you some clues as how you can monitor reference counts, or perhaps suggest an alternative to what you're trying to do.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Intercept any changes to the sv_refcnt/SvREFCNT of an object
by roboticus
in thread Intercept any changes to the sv_refcnt/SvREFCNT of an object
by vernonlyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |