Fellows, I am a graduate student who has been away from Perl for 3 or 4 years, and am in need of some assistance. I've got a flat-file (text) database that I need to count the # of tornado days (there is a numeric date field in MM/DD/YYYY format) for each state (a numeric field with each state having a unique ID from 1 to 50)...but the data is arranged by tornado report (such that there are many cases where there are more than 1 tornado per day per state)...so I am looking to count just unique records (1 per day per state) for each year of record, display the results. If anyone could give me any tips on how to get started on this task, it would be much appreciated. Have a good evening, Gordon

In reply to Help with calculating stats from a flat-file database by nadocane

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.