in reply to
Caputuring output while inputting to dc...
I think you might want to look at IPC::Open2 and IPC::Open3. They handle bidirectional piping. I can't offer you any experience with them, but I've read about them.
Results (49 votes),