in reply to How to restrict the user to enter only 1 character

You can probably find what you need by doing a search on: Term::ReadKey

--Jim