$template->param( FILES => [ map +{ NUM => $_+1, NAME => $files[$_], }, 0..$#files ], );