in reply to Best way to ask for password (cross-platform or Win32)
IO::Prompt may be worth a look at - in particular the '-e' option.