|Don't ask to ask, just ask|
Drop-In Password Dialog?by ColonelPanic (Friar)
|on Nov 28, 2012 at 13:30 UTC||Need Help??|
ColonelPanic has asked for the
wisdom of the Perl Monks concerning the following question:
Dear Fellow Monks,
I have scripts that connect to a database, and I want to let the user type a password without it being seen on the screen. I know this is a common issue, and the normal solutions are available all over the place (here, for example): either disable terminal echo with system commands, or use Term::ReadKey.
However, my problem is that I run my scripts in Eclipse (using the EPIC plugin). I/O goes through Eclipse's own terminal, which is not accesible through either of these methods.
I wondered if there was a module that creates a simple username/password dialog that could be added to a script in drop-in fashion, without me having to add a bunch of GUI handling to the script. This seems like an obvious, useful idea, but I wasn't able to find anything on CPAN.
Thanks in advance for your help.
When's the last time you used duct tape on a duct? --Larry Wall