in reply to How best to hide command-line arguments from ps command?

why not using
print "Enter Password: "; my $password = <STDIN>;


---edit---
oh, btw., you might whant to use chomp($password); to remove the \n at the end of the string.