lisaw has asked for the wisdom of the Perl Monks concerning the following question:
Dat File:open(FILE, "$catdir/categories.dat") || &error_message("Can't fin +d data file - $catdir/categories.dat."); @list = <FILE>; close(FILE); @list= sort(@list); $numlist = @list; print "<select size=1 name='catlisting'>"; for ($a = 0; $a < $numlist; $a ++) { ($one, $nochop) = split(/\|/, $list[$a]); print "<option value='$one'>$one</option>"; } print "</select>"; close(FILE);
Everything works fine until it gets added to the flat data file. Anything following the "catlisting" get sent to the next line. Any suggestions? thanks, lisCategories Accounting Attorneys Automobile-Sales Automobile-Services Banks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DB Question
by FamousLongAgo (Friar) on Nov 11, 2002 at 15:29 UTC | |
by kshay (Beadle) on Nov 11, 2002 at 15:32 UTC | |
by lisaw (Beadle) on Nov 11, 2002 at 16:47 UTC | |
|
Re: DB Question
by tadman (Prior) on Nov 11, 2002 at 15:32 UTC |