Read password without displaying anything : Term « System Functions « Perl






Read password without displaying anything

      


use Term::ReadKey;

print "Type your password: ";

ReadMode('noecho');

$password = ReadLine(0);

   
    
    
    
    
    
  








Related examples in the same category

1.use Term::ReadKey;
2.ReadMode('cbreak');
3.Get Terminal Size
4.Set new prompt letter for terminal when reading data
5.use Term::ANSIColor;