in reply to acessing pointer data from the memory
If, as seems clear to me from your question, the perl interpreter is embedded within the C++ process who's memory you are trying to access, then it it just a case of making your C++ memory be visible to the interpreter.
The section of perlembed (which you have presumably have read?) entitled "Fiddling with the Perl stack from your C program" would appear to describe what you are looking for.
|
|---|