Have you tried to get the Term::ReadKey module from CPAN?
If you're on a Windows box, you're probably running ActiveState Perl, just bring up a DOS window and enter:
cpan
if it's the first time into CPAN, you're going to have to answer a bunch of setup questions, most of the time, you can just take the defaults. You will probably have to go to Microsoft and download "NMAKE"
Once you're through that, at the prompt, type in
install Term::ReadKey
and it will download and install it.
CPAN is how you update and extend Perl. Damn near anything you'd ever want to do with Perl has some modules on CPAN that'd make it much easier.
As far as masking your inputs, you can test for term type and colors, then set the text color to the same as the background. It's not very secure.
You can also redirect the stdout to null. Safer, but potentially really ugly if something/someone kills the session during the redirect.
Good luck
Scott