technoman has asked for the wisdom of the Perl Monks concerning the following question:
This opens that log file.open(PTR,">>nate.txt");
On another web server (also, Apache), I had the same thing, same
exact program and everything. It wouldn't work. All I would get is
this annoying: 500 Internal Server Error. In the log file, it would
give me a Premature end of script headers error: failed to open log file and
fopen: Permission denied.
I had the permissions correctly set to read and write on that "nate.txt"
file. What I did to remedy that error, was to change that OPEN line to:
My question is, why does it matter if I use the single-quote or the double-quotes? Why doesn't it work with the double-quotes? I'd appreciate any help. Thanks!open(PTR, '>>nate.txt');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Question about OPEN
by tye (Sage) on Dec 05, 2001 at 20:21 UTC | |
|
Re: Question about OPEN
by Beatnik (Parson) on Dec 05, 2001 at 19:38 UTC | |
|
Re: Question about OPEN
by strat (Canon) on Dec 05, 2001 at 19:32 UTC |