Using HTML::Template the template file would end up looking a bit like this
<html><head><title>Hours Worked Status</title> </head><body bgcolor = "white" text="black" link="black">+ <BASE HREF="http://nbpdexplorers.port5.com/"> <br><center><h1>Hours Worked Status</h1></center><br> <center><h3>Today's Date: $date1<br><br>Total Event(s): $ttlevn+ts</h3 +></center> <center><table border> <colgroup align="center" span="27"> <tr><td></td> <!-- TMPL_LOOP months --> <th><!-- TMPL_VAR month_name --></th> <!-- /TMPL_LOOP months --> <th><!-- TMPL_VAR total --></th> </tr></colgroup><colgroup align="left"> <!-- TMPL_LOOP personnel --> <tr> <td><!-- TMPL_VAR name --></td> <!-- TMPL_LOOP workinghours --> <td><!-- TMPL_VAR hours --></td> <!-- /TMPL_LOOP workinghours --> </tr> <!-- /TMPL_LOOP personnel --> </table><center><p><a href="http://nbpdexplorers.port5.com/c+gi-bin/ma +inpage.cgi?name=$name"><h3>Back To Administrative Options<+/h3></a> </p></center></body></html>

The data structures would look like

$template->param(months => [{monthname=>'January'}, {monthname=>'Febuary'}, ... {monthname=>'December'}]); $template->param(personnel => [{name=>'Bottum', workinghours =>[{hours=>aaa}, {hours=>aaa}, ...], total => bbb}, {name=>'Bottum', workinghours =>[{hours=>aaa}, {hours=>aaa}, ...], total => bbb}, ]);

This is only a quick hack based on your html but it should give you an idea.

Hope this helps
UnderMine


In reply to Re: use strict by UnderMine
in thread use strict 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.