Help for this page

Select Code to Download


  1. or download this
    <TMPL_LOOP NAME=FILES>
    Name: <TMPL_VAR NAME=NAME><br>
    </TMPL_LOOP>
    
  2. or download this
    $template->param(
       FILES => [ map +{ NAME => $_ }, @files ],
    );
    
  3. or download this
    <TMPL_LOOP NAME=FILES>
    <TMPL_VAR NAME=NUM>. <TMPL_VAR NAME=NAME><br>
    </TMPL_LOOP>
    
  4. or download this
    $template->param(
       FILES => [ map +{ NUM  => $_+1,
    ...
                  0..$#files
                ],
    );