I'm not sure why it doesn't work for you, but I would recommend you try something else. I have benchmarked several data-sharing modules based on IPC::ShareLite, and they are very slow. Try
BerkeleyDB or
Cache::FastMmap instead. Both are hundreds of times faster. A local MySQL database is also many times faster than a typical IPC::ShareLite module.