That is because you are *not* printing "Browser Test" to the OUTFILE handle.
open(OUTFILE, ">>survey.txt");
print OUTFILE "this is a test!!!\n";
print OUTFILE "Browser test\n";
close(OUTFILE);
-Original Message-
From: Elliot Holden [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03,
Elliot Holden [EH], on Thursday, February 03, 2005 at 01:24 (-0500)
wrote:
EH> open(OUTFILE, ">>survey.txt");
EH> print OUTFILE "this is a test!!!\n";
EH> close(OUTFILE);
EH> print "Browser test\n";
you should always use open with die. For example:
open(OUTFILE, ">>survey.txt") or die "Can't open
Elliot Holden <[EMAIL PROTECTED]> asked:
> okay this may seem like a simple problem but here it goes:
[...]
> open(OUTFILE, ">>survey.txt");
[...]
Your web server may not have permission to create
the file in question. Always check return codes!
open(OUTFILE, ">>survey.txt") or die "Could not ope
On 3 Feb 2005, at 06:24, Elliot Holden wrote:
okay this may seem like a simple problem but here it goes:
when running the the script below from the unix (mac osx) command line
the "survey.txt" file is created and "this a test!!!" is written to
the file. But when running it from a browser the file
Elliot Holden wrote:
okay this may seem like a simple problem but here it goes:
when running the the script below from the unix (mac osx) command line
the "survey.txt" file is created and "this a test!!!" is written to the
file. But when running it from a browser the file is Not created and
"Bro