open (OUTPUT, "command |"); while () #do something with output }