On Thu, May 20, 2004 at 09:02:18AM -, PerlDiscuss - Perl Newsgroups and mailing
lists wrote:
> Is there any easy way I can find out why the file cant be opened (is it
> permissions?).
Yes, print the error message that Perl provides in $!. For example,
eval {
open (LOGFILE, ">> lo
Please bottom post...
> Also, the first line,
>
> > #!/usr/local/bin/perl
>
> What if the server isn't a UNIX server, but an IIS server? Doesn't
this line
> have to change?
>
Careful, Unix is an OS type, IIS is an application software group.
It is my understanding (which could be very wrong)
AIL PROTECTED]
Subject: Re: writing to a file
> Hi
>
> I have a very simple cgi script that I have put onto a webserver. I want
> to write to a log file when it is run. My problem is that the open file
> command always fails (and I get the "openFailed" message in my
> Hi
>
> I have a very simple cgi script that I have put onto a webserver. I want
> to write to a log file when it is run. My problem is that the open file
> command always fails (and I get the "openFailed" message in my browser).
> (even if i try opening for input it fails). I have created the fi