HTML::Template:
<h1>TRANSACTIONS</h1>
<TMPL_LOOP NAME="TRANSACTIONS">
<TABLE BORDER="1">
<TR><TD>TRansaction</TD><TD>DATE</TD><TD>Type</TD><TD>Amount</TD>
+<TD>Ending Balance</TD></TR>
<TR><TD>Transaction:</TD>
<TD><TMPL_VAR NAME="Date"></TD>
<TD><TMPL_VAR NAME="Type"></TD>
<TD><TMPL_VAR NAME="Amount"></TD>
<TD><TMPL_VAR NAME="Ending_Balance"></TD></TR>
</TABLE>
</TMPL_LOOP>
How I'm obtaining the data to fill the table:
my @LINES = MyDB->get_transactions; #This was tested, it returns the c
+orrect information
my %split;
for (@LINES)
{
my @row = split;
$split{$_} = @row;
}
$template->param(TRANSACTIONS => \%split);
|