How to get an array values in the dropdown in perl cgi html template : Please  suggest how to get array values in the dropdown list using html template.

    open (FL, "<file.txt"); 
    file.txt values are
    count1
    count2
    count3
    count4
    count5

    my @TOTAL = <FL>; 

    foreach $count(@TOTAL)
    {
    $template->param( COUNT => [{name => $count}]); # here I am getting only one value (count1 only)
    }

    I am expecting the values like below , so the dropdown will list all the values. 
    $template->param(COUNT => [{name => $count1}, {name => $count2}, {name => $count3}, {name => $count4}]);

    print $template->output, "\n";