in reply to
Re^4: How to access the contents of a specific memory address?
in thread How to access the contents of a specific memory address?
Yes, this is taking me half the way I wanted to go. I can use Devel::Peek to inspect variables and their location in memory. What I really wanted to do, however, was to go the other way: to find out which value is currently stored in a specific memory location.
Is there a way Devel::Peek will provide this information, too?
I am confused. Are you saying "I have a PV */char * from an unknown SV, I want to find out what SV * does this PV */char * belong to, how can I do this?"? This might be possible to do BTW.
Or are you asking, I have a PV */char *, I want to find out how long is the allocation according to the malloc system?
If I understand "to find out which value is currently stored in a specific memory location." in isolation, you want to read a memory block into the Perl language. That involves unpack(), and was shown to you before in this thread.