in reply to Emulating the cmd line pipe
open I,'myInProg|'; open O,'|myOutProg'; print O while <I>; [download]