http://qs321.pair.com?node_id=1073765


in reply to Changing data structure with HTML::Template

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 };