s_gaurav1091 has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting user input from STDIN
by waldner (Beadle) on Jun 21, 2008 at 11:16 UTC | |
|
Re: Getting user input from STDIN
by FunkyMonk (Bishop) on Jun 21, 2008 at 11:17 UTC | |
|
Re: Getting user input from STDIN
by CountZero (Bishop) on Jun 21, 2008 at 21:05 UTC | |
|
Re: Getting user input from STDIN
by alexm (Chaplain) on Jun 21, 2008 at 19:38 UTC | |
|
Re: Getting user input from STDIN
by casiano (Pilgrim) on Jun 22, 2008 at 09:58 UTC |