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 };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Changing data structure with HTML::Template
by jms53 (Monk) on Feb 07, 2014 at 11:51 UTC |
In Section
Seekers of Perl Wisdom