Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Turning off local-echo from a server.

by defyance (Curate)
on Jan 14, 2003 at 02:56 UTC ( #226699=note: print w/replies, xml ) Need Help??


in reply to Turning off local-echo from a server.

You have quite a few options here..

I would go with:

use Term::ReadKey; ReadMode 2; chomp( my $password = ReadLine ); ReadMode 0;
There are several nodes on this site that will lead you in the right direction, I suggest a good search on "Handling user input", or something like that.

-- Can't never could do anything, so give me and inch, I'll make it a mile.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://226699]
help
Chatterbox?
[ambrus]: Corion: really? Does that mean the Prima watcher objects behave as handles that stop the watcher when they're destroyed, just like AnyEvent expects?
[ambrus]: "all the bugs" -- hehe, good luck
[ambrus]: Corion: what I don't understand is, if you make a one-shot AnyEvent timer with short timeout, does this code guarantee that the Prima timer can't queue two timeout events before invoking any of them?
[ambrus]: Because that could break AnyEvent code, which is why I added a guard.
[ambrus]: (It might be easier to use the callback scalar as a guard, as in $c and &$c(); $c = ();)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-12-09 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.