haha.. thanks for the push in the correct direction!
 
Anyways, this isn't a homework problem, let me assure you of that straight away. What I'm doing is an online hockey pool for my work.
 
Currently, it takes the picks that a certain user made out of a data file and assigns a total amount of "points" to the user based on how many points their players have gotten (which is determined completely independantly from this part of the script). This value is stored in an array at this point, because the user ID is, at this point, the array index of the amount of "points." A hash here is useless (right?).
 
Anyways, after all the "points" values for all the users are set into the array, I think it'd be best to put these values into a hash that also holds the user id, and then sort the hash by the "points" values.
 
Perhaps there's something wrong with my reasoning?
 
I'll come clean: I've only be using PERL for 3 days now, and I've only been programming for about a year or so. That's why I tried to explain it more in a mathematical light than a programming one.
 
Thanks for your help! I'll be setting up an account shortly.

In reply to Re: Re: hash creation. by Anonymous Monk
in thread hash creation. by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.