[Perl] パスワードなどを入力させる場合、端末に内容を表示させないようにするにはsttyコマンドでechoを無効にすればよい。 system("stty -echo"); print "Enter your password: "; chomp($passwd = ); print "\n"; system("stty echo"); > このページを見る
最終更新時間:
2007年09月24日20時07分
みんなのブックマーク 人気(0) 新着
- "stty -echo"で標準入力を非表示にする。perlならIO::Promptもありかな。









