How about you provide a piece of code that can be run and demonstrates the problem?

It is good practice to use strictures (use strict; use warnings;). That may not help highlight the problem in this case, but strictures are pretty good at catching typos and "silly" errors early rather than late and will save you bulk time and frustration one day soon. ;)

Update: for my $person ( 1 .. $#{$row_arr_today} ) does not "##cycle through the array" because Perl arrays start at 0 (generally). But you knew that because later you have foreach my $row ( 0 .. $#namearray ) so either the code of the comment is wrong, or at least is misleading. Generally it is considered bad to comment "obvious stuff". It's especially bad when the comment is wrong or misleading!


DWIM is Perl's answer to Gödel

In reply to Re: newb question by GrandFather
in thread newb question by anesthdr

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.