http://www.perlmonks.org?node_id=226699


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.