Bu this will show the password on the console. I don't want the password to be displayed when the user types in. I know we have a perl module Term::ReadLine through which we can do this. But I don't want to use this perl module. Please suggest. Thanks in advanceprint "\nlogin: "; $username = <STDIN>; chomp($username); print "Password: "; $password = <STDIN>; chomp($password);
In reply to Getting user input from STDIN by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |