in reply to Re^2: Non-buffered read from program
in thread Non-buffered read from program

Or if you don't want to use Expect when you're not planning on using all of its complexity, you could do something like: http://www.perlmonks.org/?node_id=393312 to put a pesudo-tty inbetween you and the command.