in reply to Re: Hiding password on commandline
in thread Hiding password on commandline

This is very similar to a question in perlfaq8, including the example code.

However, reading the POD for Term::ReadKey, it says for ReadLine categorically:

This call is currently not available under Windows.
Curious... I wonder why not. Maybe it is and the POD is out of date. However, rolling some code to handle backspaces or <DEL>s by hand, or using Term::ReadLine to prompt and read the line, will give a truly portable solution.

--
I'm Not Just Another Perl Hacker

Update: Corrected a typo. I was referring to the POD in Term::ReadKey, not Term::ReadLine - sorry for the confusion.