in reply to Re: Term::ReadPassword::Win32 kills STDINin thread Term::ReadPassword::Win32 kills STDIN
On Linux, you also need to check for \n, not only \r
if(ord($key) == 13 || ord($key) == 10) { # if Enter was pressed... [download]