in reply to Lists
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Lists
by arturo (Vicar) on Apr 17, 2001 at 19:54 UTC |