looks like you're data hiding, i.e. using an implicit value of something to then decide what column/month it is. this is generally bad and no longer done in this day and age of cheap storage. so to cut to the chase, make the implicit explicit, i.e. store the column number (or even better month number and/or name) as part of the hash. then you adjust the code to stop relying on implicit order of data. it also opens up avenues of further flexibility, e.g. can summarize data by quarter etc etc.
also just in case the sums of these decimal point numbers really matter using a non floating point math library. typical gotcha is doing a conditional on numbers supposed to add to 100 percent or similar, when in fact floating point math can produce something not quite 100 percent, and the conditional fails.
btw for aesthetics, columns of decimal numbers are best decimal point justified..which is a fun little excercise in itself.
cheers.
the hardest line to type correctly is: stty erase ^H
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.