Hi All,
I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have
been unable to open files from a CGI.pm script. Here is the offending code:
use CGI qw/:standard :html3 :netscape/;
use POSIX 'strftime';
use CGI::Carp('carpout');
open(LOG,">>.\guestbook.err")||
die "couldn't open log. $!";
Here is the error message:
guestbook.pl: couldn't open log. Permission denied at
c:\inetpub\wwwroot\cgi-bin\guestbook.pl line 5
I have tried full path names with forward and backwards slashes. Sigh, if
only I were in UNIX, the error message would be sensible and useful!
The same piece of code works ok in a .pl script without CGI.
Any help is appreciated!
Mary Anderson
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>