http://www.perlmonks.org?node_id=187849


in reply to Emulating the cmd line pipe

open I,'myInProg|'; open O,'|myOutProg'; print O while <I>;