I have a Perl script that requires the user to enter a password. How can I echo only \'*\' in place of the character that the user types, as they type it?
Have you tried storing the string (so that your program can still read it) and find out its length then create a string of the same length, but only use '*'?