I considered the loop but the output inside the while is not making sense to me. Here is a sample template if I would use the loop tag.
<table> <tr> <td><TMPL_VAR NAME="NAME"></td> </tr> <TMPL_LOOP NAME=DATA> <tr> <td><TMPL_VAR NAME="NUMBER"></td> <td><TMPL_VAR NAME="DATE"></td> <td><TMPL_VAR NAME="COL"></td> <td><TMPL_VAR NAME="FIRST"></td> <td><TMPL_VAR NAME="LAST"></td> </tr> </TMPL_LOOP> </table>

I am using without the loop tag:
<table> <tr> <td><TMPL_VAR NAME="NAME"></td> </tr> <tr> <td><TMPL_VAR NAME="NUMBER"></td> <td><TMPL_VAR NAME="DATE"></td> <td><TMPL_VAR NAME="COL"></td> <td><TMPL_VAR NAME="FIRST"></td> <td><TMPL_VAR NAME="LAST"></td> </tr> </table>

One output example:
<table> <tr> <td>John Doe</td> </tr> <tr> <td>1111</td> <td>04/28/2014</td> <td>Code 4</td> <td>A</td> <td>B</td> </tr> <tr> <td>234</td> <td>04/28/2014</td> <td>Code 5</td> <td>A</td> <td>C</td> </tr> <tr> <td>6678</td> <td>05/28/2014</td> <td>Code 9</td> <td>B</td> <td>K</td> </tr> </table>

Another:
<table> <tr> <td>Mary ANn</td> </tr> <tr> <td>88766</td> <td>04/28/2014</td> <td>Code AX</td> <td>Q</td> <td>M</td> </tr> </table>

I hope it's a little clear, thanks!

In reply to Re^3: HTML::Template output to files. by Anonymous Monk
in thread HTML::Template output to files. by Anonymous Monk

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.