I tried the following code
use strict; use warnings; use Term::ReadPassword::Win32 qw(read_password); my $pw = read_password('pw: '); print "pw $pw\n"; my $x = <STDIN>; print "x: $x\n";
It really asks for the password and does not respond to the answer, and then skips the <STDIN> that follows it. I assume this is an error in Term :: ReadPassword :: Win32, so I am wondering if there is another module that works well on Windows?
source share