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.
Every fork has a rather big overhead.
In Section
Seekers of Perl Wisdom