http://www.perlmonks.org?node_id=75985


in reply to How can I get just one character from STDIN?

Use Term::ReadKey. Set Readmode 'cbreak'. I use it if I am in a loop and need to get out by pressing a key.