Help for this page
$template->param( FILES => [ map +{ NAME => $_ }, @files ], );
map +{ NAME -> $_}