Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Hiding password on commandline

by isotope (Deacon)
on Jan 20, 2004 at 02:35 UTC ( [id://322503]=note: print w/replies, xml ) Need Help??


in reply to Re: Hiding password on commandline
in thread Hiding password on commandline

Be sure to reverse the print and noecho:
ReadMode 'noecho'; print "\nEnter your password: ";
For typical uses, the difference isn't noticeable, but if you'd ever used Expect, you'd be quick to make that change. Don't prompt for the password until you've ensured it won't echo, or there's the possibility that the password will be entered (and echoed) before you disable echo.


--isotope

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (9)
As of 2024-04-18 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found