in reply to How to turn "HASH(0x1234567)" into a real HASH

It's not possible, to turn the stringified hash address into a reference.

(At least not without meddling with internals and risking segfaults)

My advice, keep the original reference.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: How to turn "HASH(0x1234567)" into a real HASH

Replies are listed 'Best First'.
Re^2: How to turn "HASH(0x1234567)" into a real HASH
by rodd (Scribe) on Oct 13, 2017 at 17:00 UTC
    Thanks, that did it!

    my $hash = bless(\(0+hex $addr), "B::AV")->object_2svref;
      You are aware about the risks?

      Strings have no ref count!

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!