I spent a while trying to find a nice solution for a password prompt without writing to much code. This is the best solution I found, the IO::Prompt module! It’s awesome!
use IO::Prompt; my $pswd = prompt("password for <your name here>: ", -e => '*');
Hopefully this can save someone some time.