Cheers!my $ios = IO::Select->new($child); if ($ios->can_read(0)) { if (sysread($child, my $data, 1024)) { my @lines = split(/\n/, $data); print "Read message(s): ".join("|", @lines); } else { # Child died print "Child died"; } }
In reply to Re^2: Reading from a pipe line by line
by Marcello
in thread Reading from a pipe line by line
by Marcello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |