I think your problem is that you're reading from SAPR in list context (because of the print), so it's trying to read too much, and thus blocks... Try
print scalar <SAPR>;
or
my $sap_line = <SAPR>; # scalar context print $sap_line;
In that case you don't have to close SAPW.
In reply to Re: Pipe autoflush
by almut
in thread Pipe autoflush
by Zielony
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |