http://qs321.pair.com?node_id=639488


in reply to Grabbing input - every char, not after <Enter>

`perldoc -f getc` has information that you may find useful.

-- Douglas Hunter
  • Comment on Re: Grabbing input - every char, not after <Enter>

Replies are listed 'Best First'.
Re^2: Grabbing input - every char, not after <Enter>
by FunkyMonk (Chancellor) on Sep 17, 2007 at 21:07 UTC
    getc won't do what the OP wanted. From perldoc:
    However, it cannot be used by itself to fetch single characters without waiting for the user to hit enter

      I didn't recommend using getc. I recommended reading the getc documentation, because the majority of the getc documentation is devoted to solving the OP's problem.

      Thanks,

      -- Douglas Hunter