G'day plagent,
You haven't shown the code that actually generates the report.
That makes it rather difficult to troubleshoot.
The actual output you show has staggered columns.
This suggests to me that data for various columns is either whitespace or empty strings.
The latter could be the result of an uninitialized value being treated as "".
The warnings pragma will alert you to this.
Other potential issues include:
-
$id is set on each iteration of the outer loop but never used.
-
$count is set on each iteration of the inner loop but never used.
-
You haven't shown any declaration for $count.
The strict pragma will alert you to undeclared variables.
-
You're calling count_pwm_num() in list context (($count) = ...)
which seems inappropriate for a function which returns a number.
Obviously, as you haven't shown the code for count_pwm_num(),
that's just a guess on my part.
If one or more of those suggestions and guesses lead to a solution, that's great.
If not, you'll need to post more code for us to help you further.
Also include any output from the two pragmata I mentioned:
given they're both lexically scoped, it's important to show where in your
code that you've included them.
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.