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

Hi, I'm writing a script that prompts the user for a password. Does anybody know how to hide what is entered at the CMD-promt when using PERL in a Win32 environment?
  • Comment on hide what you type when entering a password (WIN32)

Replies are listed 'Best First'.
Re: hide what you type when entering a password (WIN32)
by arhuman (Vicar) on Mar 02, 2001 at 19:58 UTC

    Term::Readkey should do the job.

    From the CookBook :

    Use Term::ReadKey; ReadMode('noecho'); $password = ReadLine(0);
Re: hide what you type when entering a password (WIN32)
by dmistretta (Beadle) on Mar 02, 2001 at 20:03 UTC