DirectoryIndex

2004-09-12 Thread Octavian Rasnita
Hello all, I have named index.html a file that in fact is a perl cgi program and I have put it in the directory /cgi-bin/ It works fine if I access it using an URL like: http://localhost/cgi-bin/index.html The problem is that I want to access that program using: http://localhost/cgi-bin/ But

Re: DirectoryIndex

2004-09-12 Thread hcohen2
Octavian Rasnita wrote: Hello all, I have named index.html a file that in fact is a perl cgi program and I have put it in the directory /cgi-bin/ It works fine if I access it using an URL like: http://localhost/cgi-bin/index.html The problem is that I want to access that program using:

Re: table with variables

2004-09-12 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 FH; chomp(@items); print header(); $num_cols = 2; $num_items_in_td = 2; for ($i = 0; defined($items[$i]); $i += $num_items_in_td) {