http://www.perlmonks.org?node_id=796307


in reply to Re: perl embedded in C++: how to undefine perl objects that are blessed references to C++ objects when the C++ object destructs
in thread perl embedded in C++: how to undefine perl objects that are blessed references to C++ objects when the C++ object destructs

I guess I can also use overload to overload the scalar dereference, so it's transparent.