in reply to Pipe autoflush
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pipe autoflush
by Zielony (Acolyte) on Aug 23, 2007 at 12:37 UTC | |
by almut (Canon) on Aug 23, 2007 at 15:57 UTC | |
by Zielony (Acolyte) on Aug 23, 2007 at 16:33 UTC | |
by almut (Canon) on Aug 23, 2007 at 20:04 UTC | |
by Zielony (Acolyte) on Aug 23, 2007 at 21:00 UTC |