Ron Goral wrote:
If I try to create the file using open(LOG,"+>>$logfile), the error
is:

No such file or directory at
/usr/wwws/htdocs/mydomain/cgi-bin/test.cgi line 35.

You must not include the '+' character when creating a file.

    perldoc perlopentut

Try:

    open LOG, ">> $logfile" or die $!;

That presupposes of course that you remove the existing log file first.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to