open(DATA, "cat file |"); while() { ... } close(DATA) or die "STDERR_VON_CHILD";