in reply to No interactivity (prompt) after reading from pipe
open my $kb, "<", "/dev/tty" or die; while (<$kb>) { ... } [download]