or download this
while (<DATA>)
{
...
$template->param(TRANSACTIONS => [{Date => $split[0][0], Type => $spli
+t[0][1], Amount => $split[0][2], Ending_Balance => $split[0][3]},
{Date => $split[1][0], Type => $split[1][1], Amount
+=> $split[1][2], Ending_Balance => $split[1][3]},
{Date => $split[2][0], Type => $split[2][1], Amount
+=> $split[2][2], Ending_Balance => $split[2][3]} ]);