open PROG,"program|" or die "Cannot fork"; while () { # do stuff... }