List content of item in the combobox

I have a combo.cgi here. this is linux environment
What i am going to do is this combobox will list down all the flatfile name in this /u/test/cgi-bin/List directory.
after that, i wanted it to open the flatfile and display the content of the flatfile into another listbox or textarea in this page once the item is selected in the combobox.
Pls guide me here

print "Content-type: text/html\n\n";
print "<html><head>";
print "</head><body>";

@testList = `ls -1 /u/test/cgi-bin/List`;


print "<select name=\"testDropList\">";
print "<option></option>";
for(@testList){
$testName = $_; 
       print "<option value=\"$testName\">$testName</option>";
}
print "</select>";