in reply to messing with memory

And your Perl question is?
We might be able to help if we knew what it was you were trying to achieve.
You would be better asking this on a Linux site. Linux and most other UNIXs use virtual memory, so most yes, potentially dozens of processes could occupy the same area of RAM. They occupy swap areas (usually on disk) when they are not there. The algorithms and methods vary, and can be complex.