in reply to Using Tie with arrays on IPC::Shareable
All that code isn't necessary to demonstrate the problem.
I have no idea what you're changing to undef. I don't even see these integers you mentioned.