One thing you can always do to help yourself first, besides "keyword search" at the top of this page, is to see if the perldocs have information about your topic. For example here's just *some* of what I got back on Redhat 6.1 Linux(I don't know how to do this on Activestate Perl, but there's got to be a way to get perldoc info) when I entered "perldoc -q password":
=head1 Found in /usr/lib/perl5/5.00503/pod/perlfaq8.pod
=head2 How do I ask the user for a password?
(This question has nothing to do with the web. See a different
FAQ for that.)
There's an example of this in L<perlfunc/crypt>). First, you put
the terminal into "no echo" mode, then just read the password
normally. You may do this with an old-style ioctl() function, POSIX
terminal control (see L<POSIX>, and Chapter 7 of the Camel), or a call
to the B<stty> program, with varying degrees of portability.
You can also do this for most systems using the Term::ReadKey module
from CPAN, which is easier to use and in theory more portable.
use Term::ReadKey;
ReadMode('noecho');
$password = ReadLine(0);
---------------------------------------
Looks to me like that may answer your question.
If you're doing it with a Perl CGI script, outputing HTML, you can use a "input" form field with TYPE="PASSWORD", and that will display an asterisk for every character the user types for the password.
HTH.
Hardy Merrill
Mission Critical Linux, Inc.