in reply to how to solve producer consumer problem in perl when threads are disabled
I would use one of the many approaches outlined in perlipc.