Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Phil, thank you very much for the pointer and the book reference, it got me in the right direction. The final solution is almost like the one you suggested:
$rdr->read is just an OO wrapper for read. The key to making this work was to use $rdr->blocking(0), which makes the pipe reading non-blocking. Otherwise a deadlock occurs -- maybe because the read command blocks while waiting for 1k to be filled, but not sure. Thank you,
In reply to Re^2: Reading partial lines/strings from a pipe
by slightly72
|
|