in reply to Re: Is it possible to obtain all hardreferences to some memory address by knowing only one of them?
in thread Is it possible to obtain all hardreferences to some memory address by knowing only one of them?

Except that isn't part of the Perl API and is subject to change, so it's not to be recommended. Also, visit() is a static function which can't be used outside of sv.c, and who's prototype has changed between 5.8.0 and 5.8.8.

To answer the OP: no, there's no official way to achieve this.

Dave.

  • Comment on Re^2: Is it possible to obtain all hardreferences to some memory address by knowing only one of them?

Replies are listed 'Best First'.
Re^3: Is it possible to obtain all hardreferences to some memory address by knowing only one of them?
by diotalevi (Canon) on Feb 07, 2007 at 18:07 UTC

    It's still a better way to accomplish this dubious goal than other ways. At least this way the infrastructure for walking this stuff is getting used. Now the OP can expect breakage between versions of perl...

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊