http://www.perlmonks.org?node_id=840980


in reply to while reading a file, transfer the same data to two different processes.

I would work with threads and use two shared queues to send the data to the threads.
Every fork has a rather big overhead.