Term::Readline and Term::Readline::Gnu are what you are looking for; they are standard STDIN prompt modules, but can be used to do no-echo typing as you want with passwords.
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain