RE: Apache needs permissions to create file

2005-02-07 Thread Bob Showalter
Elliot Holden wrote: > This is my script > > open(OUTFILE, ">>", "survey.txt") or die "$!"; > > I am runing this script through the webserver using a browswer, > (action="http://localhost/pathtothecgiscript/cgiscript.cgi";) and the > file, survey.txt, does NOT get created. When running from

Apache needs permissions to create file

2005-02-07 Thread Elliot Holden
This is my script open(OUTFILE, ">>", "survey.txt") or die "$!"; I am runing this script through the webserver using a browswer, (action="http://localhost/pathtothecgiscript/cgiscript.cgi";) and the file, survey.txt, does NOT get created. When running from the command line the file DOES get cre

RE: create file

2004-01-02 Thread Tim Johnson
ailto:[EMAIL PROTECTED] Sent: Friday, January 02, 2004 4:12 PM To: Norman Zhang Cc: [EMAIL PROTECTED] Subject: Re: create file > So if I change my program to > > #!/usr/bin/perl -e > use strict; > $a= "myin.txt"; > $b="myout.txt"; > open(IN, $a) || die &quo

Re: create file

2004-01-02 Thread Randy W. Sims
On 1/2/2004 6:58 PM, Norman Zhang wrote: Tim Johnson wrote: What does it do when you try it? I'm seeing an empty output file. One thing I see right now is that you are attempting to print the reverse of each line, but you are reading the lines sequentially, which will not give the result you

Re: create file

2004-01-02 Thread Norman Zhang
Tim Johnson wrote: What does it do when you try it? I'm seeing an empty output file. One thing I see right now is that you are attempting to print the reverse of each line, but you are reading the lines sequentially, which will not give the result you want. Also, you should get used to always "us

RE: create file

2004-01-02 Thread Tim Johnson
- From: Norman Zhang [mailto:[EMAIL PROTECTED] Sent: Thursday, January 01, 2004 11:36 PM To: Randy W. Sims Cc: [EMAIL PROTECTED] Subject: Re: create file I want to list each character of the file backwards. -- #!/usr/bin/perl -w $a= "/loca

RE: create file

2004-01-02 Thread Charles K. Clarkson
Owen Cook <[EMAIL PROTECTED]> wrote: : When I first *discovered* comp.lang.perl.misc the very : first posting I saw was an announcement from Uri Guttman : advising a new edition of the read backwards module. I : thought I'd fallen among madmen or jokers :-) Now that you have been exposed to m

Re: create file

2004-01-02 Thread Norman Zhang
May I ask how could I list a file contents backward in a new file? What is your definition of backwards? I want to list each character of the file backwards. e.g., File_A hello. how are you? File_B ?uoy era woh .olleh perl -le 'print reverse <>' some-file-you-want-reversed perl -le 'print reve

RE: create file

2004-01-02 Thread Tim Johnson
hu 1/1/2004 11:49 PM To: [EMAIL PROTECTED] Cc: Subject: Re: create file I want to list each character of the file backwards.

Re: create file

2004-01-02 Thread Norman Zhang
>> May I ask how could I list a file contents backward in a new file? > > > What is your definition of backwards? I want to list each character of the file backwards. e.g., File_A hello. how are you? File_B ?uoy era woh .olleh > perl -le 'print reverse <>' some-file-you-want-reversed > > perl -

Re: create file

2004-01-02 Thread Owen Cook
On Thu, 1 Jan 2004, Norman Zhang wrote: > May I ask how could I list a file contents backward in a new file? > You might want to look at File::ReadBackwards When I first *discovered* comp.lang.perl.misc the very first posting I saw was an announcement from Uri Guttman advising a new edition

Re: create file

2004-01-02 Thread Randy W. Sims
On 1/2/2004 2:04 AM, Norman Zhang wrote: Hi, May I ask how could I list a file contents backward in a new file? What is your definition of backwards? perl -le 'print reverse <>' some-file-you-want-reversed perl -le 'print reverse map {join "", reverse split //} <>' some-file-you-want-reversed

create file

2004-01-02 Thread Norman Zhang
Hi, May I ask how could I list a file contents backward in a new file? Regards, Norman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Opens / create file if necessary

2002-04-04 Thread John Edwards
are now:\n"; open FILE, $file or die "Can't read from $file: $!"; print while (); close FILE; print "##End of file\n\n"; } HTH John -Original Message- From: Bruce Ambraal [mailto:[EMAIL PROTECTED]] Sent: 04 April 2002 12:09 To: [EMAIL PROTECTED

Opens / create file if necessary

2002-04-04 Thread Bruce Ambraal
Could you help I am not doing what I'm surpose to With the code below I'm trying to do the following: -Open a file, creating it if necessary -Print a name in file every time someone presses "enter" -Print a new line -Seek to the begining of file without closing file -and print the file to STDO