that'll read the file, strip the newline, and put each line as an option in the select box.open(DATA,'file') or die $!; print "<SELECT NAME=foo>"; while(<DATA>) { chomp; print "<OPTION>$_</OPTION>\n"; } print "</SELECT>"; close DATA;
In reply to Re: Lists
by suaveant
in thread Lists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |