Thanks for John and all.

On Tue, Nov 29, 2005 at 10:53 PM, John Doe wrote:

Jennifer Garner am Dienstag, 29. November 2005 15.40:
HI,Lists,

Sorry, this time I can't login into my primary mailbox of 30gigs.So I
change another email for this question.

When I get something from input such as:

my $passwd=<STDIN>;

the password typed on screen is clear plain text.How can I get it input
as hide type such as ***?Thanks.

perldoc -q password
=>
"How do I ask the user for a password?"
"...
           use Term::ReadKey;

           ReadMode('noecho');
           $password = ReadLine(0);
..."

I would add a
ReadMode('normal');

otherwise your terminal could stay in noecho mode.

hth, joe

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




--
Sent using Laszlo Mail. Try it yourself.
http://www.laszlomail.com


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to