Is it possible – when prompting for a password – to configure prompt from IO::Prompter in a way that the input is not added to the history?
#!/usr/local/bin/perl
use warnings;
use strict;
use 5.10.1;
use utf8;
use open qw( :encoding(UTF-8) :std );
use IO::Prompter;
my $password = prompt( 'Password: ', -echo => '' );
say $password;
$password = prompt( 'Password: ', -echo => '' );
say $password;
$password = prompt( 'Password: ', -echo => '' );
say $password;
$password = prompt( 'Password: ', -echo => '' );
say $password;
$password = prompt( 'Password: ', -echo => '' );
say $password;
It was not possible when you wrote the question, but IO::Prompter has been patched to include the special history set
NONEwhich disables the history.The first version of IO::Prompter with the patch is 0.004003.
http://search.cpan.org/~dconway/IO-Prompter-0.004003/lib/IO/Prompter.pm