in reply to Feeding processes through one pipe

Search http://search.cpan.org for "queue."