in reply to Re^3: while reading a file, transfer the same data to two different processes.
in thread while reading a file, transfer the same data to two different processes.

To know what he should use would require knowing his needs, and I don't know them. eval offers far less protection than forking. eval catches exceptions. Forking catches exceptions, signals and faults. It also provide a fresh environment which clears leaks and corrupt structures.