man perlfunc, and search for the following functions,
which will allow you to allocate and access shared
memory. I would also suggest reading up on some
shared memory concepts and such. Good luck, hope it
works out for you, and most of all -- that you learn
a lot from it.