% title 'Account report'; % my $total; % while ( my $record = $report->next ) { % $total += $record->value; % }
DateValuePurpose
<%= $record->date %><%== money $record->value %><%== nl2br $record->purpose %>
In total:<%== money $total %>