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

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 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 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 Manav Mathur
:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 11:55 AM To: beginners@perl.org Subject: file input/output 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 "thi

file input/output

2005-02-03 Thread Elliot Holden
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 "Browser test" is display