Created
January 13, 2011 15:03
-
-
Save redtower/777989 to your computer and use it in GitHub Desktop.
パスワードを入力する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub input_password() { | |
my $pass; | |
while (!$pass) { | |
print "Password --> "; | |
system "stty -echo"; | |
chomp($pass = <STDIN>); | |
print "\n"; | |
system "stty echo"; | |
} | |
return $pass; | |
} | |
my $password = input_password(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment