in reply to Getting user input from STDIN

See perl FAQ 8, "How do I ask the user for a password"?