I want to write a file out from within a perl cgi script. This is obviously not 
possible in the standard configuration of httpd. The normal output works 
perfectly. What is to do?


print("Content-Type: text/html; charset=ascii\n\n");
print("hello world"); # works
# no error but not found in file system after the script finished
open(my $fh, ">", "out") or die $!;   
print($fh "foo");

OpenBSD 6.1

Reply via email to