Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I don't want the display of password while entering it in prompt. I know I can use Term::ReadKey module to achive this but I don't want to use any module.

Is there any other way to achive this without using any specific module?

Thank You.

Replies are listed 'Best First'.
Re: term::readkey suggestion
by Corion (Patriarch) on Jan 27, 2010 at 14:39 UTC
      Hi Corion,

      Thanks for your reply but Term::ReadKey doesn't comes with perl as standard module (atleast in perl v5.6). Also, it's not like I am trying to avoid; just curious to know if there any other possible route?

      once again, Thanks for your suggestion.

        Of course you could use other methods, but most of them only work on a small number of platforms. Figuring out all the differences between the OSes and their implementations of terminals is very boring. Thats what Term::ReadKey does for you.

        One way of turning echo off on UNIX-like platforms is stty -echo and turn it on again with stty echo.