in reply to Transparent Wrapper

I think you're looking for "Bidirectional Communication with Another Process" in perlipc, there are standard internal functions to read from and write to the same subprocess, open2 and open3.

C.