Jemand zu Hause?Leser: 15
Term::ReadKey durchaus geeignet um Eingaben einzulesen ohne ein Echo auf der Konsole zu erzeugen. Folgendes funktioniert bei mir unter Linux einwandfrei:1 2 3 4 5 6 7 8 9 10 11 12 13 14
use 5.012; use Term::ReadKey; # Read password without echo print 'Password: '; ReadMode 2; my $password = <STDIN>; chomp $password; ReadMode 0; say 'ok'; # ... Do something with the password ... # Clear memory containing password substr($password, 0) = '*' x length($password);
Wie installiert man ein Modul?