in reply to Non-buffered read from program
Since his standard output is connected to your standard input, and not to a terminal, it is heavily buffered.
Mucking around with $| will never help, since it's the other program's buffering, not your own, that's causing the problem.
The solution is to trick it into thinking it's talking to a terminal by using Expect.pm or Expect::Simple.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Non-buffered read from program
by arc_of_descent (Hermit) on Dec 30, 2005 at 20:21 UTC | |
by ph713 (Pilgrim) on Dec 30, 2005 at 23:02 UTC |