in reply to Is it possible in perl to detect keyboard events like as "when keydown"

Maybe I misunderstand, but if you are selecting an option then pressing ENTER, isn't that a read from stdin?
chomp($option=<STDIN>)
If that is not what you want, use Term::ReadKey, although you might need Win32::Console on Windoze.
Or do you want to send keystrokes to the tool?
  • Comment on Re: Is it possible in perl to detect keyboard events like as "when keydown"
  • Download Code