For example in my cgi.pm vesrsion i was loading the value in a drop down menu. here i try to dot he same in my tamplate file but i cant. i cant evne print a value
<TMPL_LOOP name=@files>
<option value="<TMPL_VAR name=@files>"><TMPL_VAR name=@files></option>
</TMPL_LOOP>
here is the perl code that tries to fill in those values:
@display_files = map ( /([^\/]+)\.txt/, glob '../data/text/*.txt' );
@files = map { option => $_ }, @display_files;
$tmpl->param( options => \@files );
Why doesnt it fill the values in the drop down menu? |