in reply to Password with hashes

Do you just want to edit the value for a given key? If so,
#assume $usr stores current user name print "Enter password:"; my $pass=<STDIN>; chomp($pass); $pword{$usr}=$pass;
Is this what you're looking for? If not can you elaborate?
Rohit Raghunathan