Thanks for the response, and greetings from the other side of the pond!
Maybe ... I'm not new to *nix.... I was rather thinking there was some config in my default Mandrake/Apache install ...
Here's what I'm seeing:
$pwd
/var/www
$ ls -la (abbrv)
total 36
drwxrwxr-x 7 apache apache 4096 Mar 4 12:20 ./
drwxr-xr-x 19 root root 4096 Feb 18 19:40 ../
-rw------- 1 web web 1940 Mar 4 17:44 .bash_history
drwxrwxrwx 3 root root 4096 Mar 6 18:44 cgi-bin/
drwxrwxr-x 7 apache apache 4096 Mar 6 10:08 html/
The CGI itself (in:
-rwxr-xr-x 1 root root 14294 Mar 6 16:00 statustest.cgi*
httpd processes run as "apache" (should I change that to nobody like I would under netscape?)
I've tried writting out from Perl CGI to everywhere, including even /tmp. Mostly I was to write to:
$ pwd
/var/
$ ls -l (abbrv)
drwxr-xr-x 2 root root 4096 Mar 6 10:41 docs/
This is my Perl sub: ($DOC is set externally)
171 sub save_file {
172 $FILEPATH="/docs/$DOC";
173 open(REPORT,">>$FILEPATH"

|| &save_error;
174 print REPORT &html_header();
175 print REPORT &page_header_output($TECH);
176
177 print REPORT &table_start();
178 for ( $n=1; $n <= 5; $n++ ) {
179 print REPORT &print_row_output($n);
180 }
181 print REPORT "</table><p>";
182 print REPORT "<P><textarea name=\"comments\" cols=\"60\" rows=\"
9\" wrap=\"VIRTUAL\">$formdata{'comments'}</textarea>";
183
184 print REPORT &html_footer();
185 close(REPORT);
186 }
My error routine is:
161 sub save_error {
162 print "<B>ERROR: something happened when I tried to save the file on the server!</b>";
163 }
And the error I'm seeing is:
print() on closed filehandle REPORT at /var/
line 174.
print() on closed filehandle REPORT at /var/
line 175.
print() on closed filehandle REPORT at /var/
line 177.
print() on closed filehandle REPORT at /var/
line 179.
print() on closed filehandle REPORT at /var/
line 179.
print() on closed filehandle REPORT at /var/
line 179.
print() on closed filehandle REPORT at /var/
line 179.
print() on closed filehandle REPORT at /var/
line 179.
print() on closed filehandle REPORT at /var/
line 181.
print() on closed filehandle REPORT at /var/
line 182.
print() on closed filehandle REPORT at /var/
line 184.
File "/docs/SR03062002-030558.doc" not found
<br> at /var/
line 198.