sv_refcnt#

Return the reference count of the wrapped SV.

Synopsis#

my $sv = B::svref_2object(\$x);
print $sv->REFCNT;

Calling REFCNT does not itself alter the count the B::* wrapper reports (the wrapper holds a weak handle, not a strong reference).