in reply to Re: user input behavior from within a subroutine
in thread user input behavior from within a subroutine

Good point, it could be a cacheing issue. Adding $|=1; before the prompt might do the trick.

Update: Oops. Reading from STDIN flushes STDOUT.