Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.

In reply to Password with hashes by Velli

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-05-18 23:24 GMT
Find Nodes?
    Voting Booth?

    No recent polls found