How can I have Perl take input from STDIN one character at a time?

前端 未结 3 2045
走了就别回头了
走了就别回头了 2021-01-05 15:12

I am somewhat a beginner at Perl (compared to people here). I know enough to be able to write programs to do many things with through the command prompt. At one point, I dec

3条回答
  •  青春惊慌失措
    2021-01-05 15:32

    If you are using *nix, you will find Curses useful.

    It has a getch method that does what you want.

    Term::TermKey also looks like a potential solution.

提交回复
热议问题