timtrust123
Programmer
I have a simpe script that requires input from the user for the account name and password. I would like to be able to hide the password from being displayed on the screen. For example a password of "test" would display ****.
Any ideas out there?
Script
print "please enter your user ID\n";
$username = <STDIN>;
#chomp $feds_username ;
#print "please enter your password\n\n";
#$password = <STDIN>;
#chomp $feds_username ;
Output
please enter your user ID
testuser
please enter your password
test
Any ideas out there?
Script
print "please enter your user ID\n";
$username = <STDIN>;
#chomp $feds_username ;
#print "please enter your password\n\n";
#$password = <STDIN>;
#chomp $feds_username ;
Output
please enter your user ID
testuser
please enter your password
test