[PerlChina] 问个小问题

fayland fayland at gmail.com
Sun Jun 11 18:33:39 PDT 2006


YW wrote:
> 这几天写了个脚本。(win下)
> 用途:先拨vpn,再改路由表。
>
> 拨号是直接用win系统的  rasdial 命令
> 为安全起见,不把密码写在perl脚本里
> 而是运行时提示用户输入。。。
> 问题:
> 怎么不回显密码字符,或者回显*号?
>   

http://search.cpan.org/~jstowe/TermReadKey-2.30/ReadKey.pm

ReadMode MODE [, Filehandle]

    2    Change to cooked mode with echo off. 
          (Good for passwords)



> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm


-- 
Fayland Lam // http://www.fayland.org/ 



More information about the China-pm mailing list