Velli has asked for the wisdom of the Perl Monks concerning the following question:

Ok, so I have an idea to build a program that is like a time card system in perl. The problem I am facing right now is the password piece of the puzzle. I want to ask a user for a password, if he does not have one then the user creates a password that is specific to them. I want to store that password in a hash. So let's say: my %pword = (Rich => '', Broke => '',); Both Rich and Broke have no passwords, so when they create one, I want to store that input into the key's missing value. I thought about reversing the hash so it can be done, but now I look for other solutions because maybe it will be more complicated. I just want to get that value with the current key, and I found trouble on how to use the user's username to look up the key, and store that password in their value. Any help would be much appreciated. Thank you.