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
| [reply] [Watch: Dir/Any] |
Try this on for size. It was found by searching this website using the ever-present search option near the top, left hand corner of each page.
--SparkeyG | [reply] [Watch: Dir/Any] |
If the password is submitted online then use HTML's built-in password field. When submitting to an Apache webserver then use CGI.pm's password_field function, which writes the tags for you. The CGI.pm documentation gives the following example written in the named parameter style:
print $query->password_field(-name=>'secret',
-value=>'starting value',
-size=>50,
-maxlength=>80);
| [reply] [Watch: Dir/Any] [d/l] |