in reply to Playing with the Reference Count of variables (to create a POOL of objects wihtout mess with DESTROY).
Each SV* has a sv_refcnt field. So, to get the reference count, you can just check ref->sv_refcnt. My guess, however, is that SvREFCNT() is a safer wrapper to accessing the field directly.
The module Internals has a way of getting and messing with reference counts as well, if that helps you out.
|
|---|