Thank you very much! Let me just make sure it's doing what I want it to (being such a large dataset I can't confirm the output manually). The degree is the number of times each ID appears. The frequency is the number of times that degree appears in the dataset. I have another aspect to this I was wondering if you guys could help me out with. I have to create three random networks with the same number of IDs and interactions (but since they are random, the actual interactions will be different). And do the same degree and frequency calculations (to compare to this network) -- A subroutine would be most useful. Lastly, I need to export this all to an excel file using the Spreadsheet::WriteExcel module (with headers of the separate columns being the degrees (data in ascending order) and the corresponding degree frequencies for the given network and each of the three randomized networks). Thank you in advance to anyone that can help!

In reply to Re^2: Tallying appearance of a unique string from hash keys by jack_j
in thread Tallying appearance of a unique string from hash keys by jack_j

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.