Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Reading a password with Term::ReadLine

by spartan (Pilgrim)
on May 12, 2004 at 17:48 UTC ( #352850=note: print w/replies, xml ) Need Help??


in reply to Re: Reading a password with Term::ReadLine
in thread Reading a password with Term::ReadLine

++ Great snippet, I actually have a use for this.
May I suggest inserting the following, just before your 'use Term::ReadKey;' line?
$|=1; #Turn on AutoFlush

On my system (Sun solaris 9 perl 5.8.0) I was consistently seeing 1 less asterisk until I hit the enter key. This should provide a little less confusion for folks entering passwords and not seeing asterisks echoed immediately.
Thanks.


Very funny Scotty... Now PLEASE beam down my PANTS!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://352850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2023-01-28 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?