sorry for getting back to you late.
what i mean is either you need to make the month part of the hash, e.g. assign explicitly $muteperc{$accession}{'month'} = whichever_month_need_to_assign. then when you're doing the output you can easily detect missing month or implicitly show (by printing month). Hope this makes sense.
in the past i've written a perl report that adds up summary data values, with many different slices of summary results required per month and quarter. rather than counting on particular month data being present, the final output routine was a for(1..12) that indexed into the convoluted hashes by month number. Whatever month indexed values didn't exist (no data) i made sure undef printed as zero.
on something related in doing summary calculations, can't remember what perl does when you divide by zero...but it ends up being a error with live data when values are missing or contain zero. so always put in an explicit check for divide by zero, before it bites.
have fun perl coding.
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.