I see... I've misunderstood what the 'p' format does. Using pack('p',$something) will give me a pointer to something in memory and unpack('p',$address) reads from the pointer. I had been expecting that pack() would write to some address though on consideration that doesn't make sense since there isn't another field available to use for the data (unless pack were an lvalue). Hmm... ok. So is there a way to write to memory in perl-space? I'd really like to be able to muck with the internals without just including an XS writeMemory() method.
In reply to Re: Re: Using pack with P and p?
by diotalevi
in thread Using pack with P and p?
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |