CGI expert?
Hello,
Sorry about going over your head....
The code I posted is suppose to read the directory at $DATA_PATH.
so...
$d = new DirHandle $DATA_PATH
opens a handle, $d, that can be used to get the file names in the subdirectory $DATA_PATH.
if $d is not defined, then perl was not able
to open $DATA_PATH. Hence, returns "Bad Data Path". If the data path is good, then the next section of code will read the file names from the subdirectory $DATA_PATH into $_ and print it out. print "<BR>" is an HTML code that causes a line break.
I guess you are wondering where we should go from here. From what I can see, the path $DATA_PATH is not correct. So, we will try something else like :
$DATA_PATH = ".";
In theory, it should print out the directory of something -- this something should be what ever is in cgi-bin (not sure, but thats what mine does). Try mucking around with the $DATA_PATH until it works or you see something familiar.
Try
$DATA_PATH = "/" or "/userweb/titus"
I guess that problem is a bit more complicated that you had hoped...so we should take this offline since it is a pain try to explain it over a bulletin board. My name is Victor. So you can give me a call at home @ 420-8789 or at work at 415-6000-2033.
|