open (STDOUTHANDLE, "somecommand|"); while ($line = ) { # . . . }