W
Winston Smith
Hello,
I would like to know if there is a way to open a pipie for both reading
and writing ? What I'm trying to do is something like:
open(FILTRE, '| myprogram |');
while (<>) {
print FILTRE, $_;
my $result = <FILTRE>;
print STDOUT, $result;
}
The point is I need to give lines one by one to my program and read the
output in the same time (as the output for a given line can change the
following input).
If someone as any idea, thank you in advance.
Winston
I would like to know if there is a way to open a pipie for both reading
and writing ? What I'm trying to do is something like:
open(FILTRE, '| myprogram |');
while (<>) {
print FILTRE, $_;
my $result = <FILTRE>;
print STDOUT, $result;
}
The point is I need to give lines one by one to my program and read the
output in the same time (as the output for a given line can change the
following input).
If someone as any idea, thank you in advance.
Winston