in reply to IPC::Open3 buffering and autoflush

As it seems you want to interact with an external console program, you might also want to look into Expect (which uses IO::Pty under the hood).