in reply to hiding input

Term::Readkey is probably what you want to use, a la
use Term::Readkey; ReadMode('noecho'); $pwd = ReadLine(0);

(Lifted from the Perl Cookbook, p. 529)

Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Replies are listed 'Best First'.
Re: Re: hiding input
by Octavian (Monk) on Nov 17, 2000 at 02:13 UTC
    tried this, and got the error:
    Can't locate Term/Readkey.pm in @INC (@INC contains: /opt/perl5/lib/PA-RISC1.1/5.00404 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC1.1 /opt/perl5/lib/site_perl .) at ./prog line 14. BEGIN failed--compilation aborted at ./prog line 14.
      You don't have the module installed, and you'll have to install the module, I'm afraid. If you have root access (or you can get the admin to do this for you) I'd advise using the CPAN module.
      perl -MCPAN -e 'install Term::Readkey'
      from the command line. Read perlmodinstall for more info on installing modules.

      Philosophy can be made out of anything. Or less -- Jerry A. Fodor

      You may yet have it installed. It's actually supposed to be use Term::ReadKey. Note the capital K in ReadKey.