This is code I use.
The -e flag gives the character to echo.use IO::Prompt; my $pswd = prompt("password for <your name here>: ", -e => '*');
In reply to Re: Prompt for password and display it as asterisks (******)
by herveus
in thread Prompt for password and display it as asterisks (******)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |