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

Re: how to make a password dissapear?

by defyance (Curate)
on Dec 28, 2001 at 22:39 UTC ( [id://134933]=note: print w/replies, xml ) Need Help??

in reply to how to make a password dissapear?

Yesterday, while romping around the Monastery, I found the answer I was looking for. I don't remember which thread provided the answer as I was so excited when I found it, I lost it somehow. So I'll post the snippett in hopes that the person will take credit, so I can thank them. Sometimes the answer your looking for is right under your nose...
system('/usr/bin/stty', '-echo'); chomp($password=<STDIN>); system('/usr/bin/stty', 'echo');

Replies are listed 'Best First'.
Re: Re: how to make a password dissapear?
by cwest (Friar) on Dec 28, 2001 at 22:48 UTC
    I have to admit, that looks like you're trying way too hard.

    I'd probably give Term::ReadKey a shot if I were you.

    use Term::ReadKey; ReadMode 2; chomp( my $password = ReadLine ); ReadMode 0;
       I am a superhero.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-05-29 18:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found