in reply to Re^2: CGI script cannot create file.
in thread CGI script cannot create file.

Try writing to a different directory :) use an absolute path or chdir, see also CGI Help Guide and Troubleshooting Perl CGI scripts