in reply to CLI must not echo password
Another alternative is IO::Prompt:
or, better still, echo the password with stars:use IO::Prompt; $pwd = prompt "enter password: ", -echo=>"";
use IO::Prompt; $pwd = prompt "enter password: ", -echo=>"*";
In Section
Seekers of Perl Wisdom