This is probably more of a question than a response:
The way I'd do it would be like this:
use strict; use warnings; use FileHandle; my $handle = FileHandle->new("/path/to/process |"); $handle->autoflush(1); while(my $line = <$handle>) { print $line; # do something useful with $line... }
But I assume that doesn't work for some reason. Can anyone tell me why?
In reply to Re: Non-blocking Pipes?
by pileofrogs
in thread Non-blocking Pipes?
by aka1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |