Re: table with variables

2004-09-13 Thread Alexander Kleshchevnikov
Sorry, I find out bug in previous code. Use this: use CGI qw(:standard); open (FH, "items.txt") or die "Can't open file. Cause: $!"; my @items = sort ; chomp(@items); print header(); $num_cols = 2; $num_items_in_td = 2; for ($i = 0; defined($items[$i]); $i += $num_items_in_td) { push @tds, t

Re: table with variables

2004-09-13 Thread Alexander Kleshchevnikov
Here's my offer (you can change $num_items_in_td and $num_cols): use CGI qw(:standard); open (FH, "items.txt") or die "Can't open file. Cause: $!"; my @items = sort ; chomp(@items); print header(); $num_cols = 4; $num_items_in_td = 5; for ($i = 0; defined($items[$i]); $i += $num_items_in_td) {

Re: table with variables

2004-09-12 Thread Alexander Kleshchevnikov
('Choose your favourite brand:'), @trs ); --- Alexander Kleshchevnikov, DirectEDI Developer email:[EMAIL PROTECTED] icq: 153617972 --- "Ing. Branislav Gerzo" <[EMAIL PROTECTED]> wrote in message news:[E