Please NOTE! this is a NOT recommended method of hiding passwords, but to answer your question, keep the password from being seen?
Look at Term::ReadKey
#! /use/bin/perl use strict; use Term::ReadKey; ReadMode( "noecho"); print "Enter pwd please :"; chomp (my $pwd = <>); ReadMode ("original") ; print "\nYou typed $pwd!\n";
Update: This has been tested on a Win32 platform.
-----In reply to Re: Reading password from STDIN without echoing
by AcidHawk
in thread Reading password from STDIN without echoing
by gitarwmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |