in reply to Hiding password on commandline

Like you said, Term::ReadKey can be used for entering passwords. I think setting the terminal to cbreak mode and displaying the asterisks yourself can be easily done.

Arjen