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?
I\'m using
You should take a look at either Term::ReadKey or Win32::Console. You can use those modules to read the single key strokes and emit '*' or whathever.