سؤال

We have a perl script, in the we read password using stty. As stty is not available on windows this script fails. We did some search and found that ReadKey is an alternative for this. However we dont have this package shipped by default.

Is there any way to read password in perl without using stty and ReadKey?

It will be of great help if someone can help me in this regard.

هل كانت مفيدة؟

المحلول

To read password you can also use Term::ReadLine.

For further details visit Perl Monk.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top