Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: CLI must not echo password

by TheDamian (Priest)
on Jan 19, 2005 at 22:09 UTC ( #423523=note: print w/ replies, xml ) Need Help??


in reply to CLI must not echo password

Another alternative is IO::Prompt:

use IO::Prompt; $pwd = prompt "enter password: ", -echo=>"";
or, better still, echo the password with stars:
use IO::Prompt; $pwd = prompt "enter password: ", -echo=>"*";


Comment on Re: CLI must not echo password
Select or Download Code
Re^2: CLI must not echo password
by PhilHibbs (Hermit) on Jan 20, 2005 at 14:16 UTC
    Ooh, I nearly got excited about that, but it also isn't a standard module and needs Term::ReadKey as well anyway. The code does look cleaner though.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-07-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls