RE: file input/output

2005-02-03 Thread Manav Mathur
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,

Re: file input/output

2005-02-03 Thread Ing. Branislav Gerzo
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

RE: file input/output

2005-02-03 Thread Thomas Bätzler
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

Re: file input/output

2005-02-03 Thread Ken Gillett
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

Re: file input/output

2005-02-03 Thread John W. Krahn
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