Greetings jms53,
I think you'll need to change your data structure. HTML::Template expects to iterate through hashrefs in an array rather than arrayrefs.
$account->{transactions} = [ map { { line => $_ } } @transactions ]; push @transactions, { date => $date, type => $type, amount => $amount, balance => $new_balance };
In reply to Re: Changing data structure with HTML::Template
by gryphon
in thread Changing data structure with HTML::Template
by jms53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |