Re: reading and writing to a text file

2001-11-22 Thread John W. Krahn
Seyi Ogunbona wrote: > > Hi, Hello > Two things. > Firstly, I would like to know if it is possible to > write in a program or script in perl to read a set of > two numbers seperated by a comma, I have exported to > a text file and the put > the numbers in another table as arguements. Yes, i

reading and writing to a text file

2001-11-22 Thread Seyi Ogunbona
Hi, Two things. Firstly, I would like to know if it is possible to write in a program or script in perl to read a set of two numbers seperated by a comma, I have exported to a text file and the put the numbers in another table as arguements. Secondly, can you give me directions if yes to a

Re: writing to a text file ... sorry

2001-05-31 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Nichole Bialczyk <[EMAIL PROTECTED]> whispered : | i'm sorry. i didn't think that you guys would want me to include my code. | i just assumed that i should try to make my question to the point with as | little text as possible. i am still having the same pr

Re: writing to a text file ... sorry

2001-05-31 Thread David Olbersen
On Thu, 31 May 2001, Jeff Pinyan wrote: > Mortal::Kombat (by me) allows you to say: > > flawless victory; # to end a program successfully > > and > > fatality "you have been thoroughly thrashed"; # like die() Oh japhy, you rule. `perl -MCPAN -e shell;` here I come! -- Dave

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Jeff Pinyan wrote: > >The Koi or Mortal Kombat modules are good substitutes. :-) > > Heh, I think you mean Coy. Koi is a type of fish. ;) So is Carp. Coy (or Koi) are similar, only prettier. :-) -- Brett Brett W. McCoy Software Engineer Broadsoft, Inc. 240-364-5225 [EMAI

Re: writing to a text file ... sorry

2001-05-31 Thread Jeff Pinyan
On May 31, Brett W. McCoy said: >> NEVER tell a random browser what your error message is! >> >> AT BEST, you simply say "it broke, we know about it, sorry". > >The Koi or Mortal Kombat modules are good substitutes. :-) Heh, I think you mean Coy. Koi is a type of fish. ;) Coy (by Damian Conway

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On 31 May 2001, Randal L. Schwartz wrote: > Just remember to turn that off before you deploy the code for production. > > NEVER tell a random browser what your error message is! > > AT BEST, you simply say "it broke, we know about it, sorry". The Koi or Mortal Kombat modules are good substitutes

Re: writing to a text file ... sorry

2001-05-31 Thread Randal L. Schwartz
> "Brett" == Brett W McCoy <[EMAIL PROTECTED]> writes: Brett> Actually, if you use the CGI:Carp module (and import fatalsToBrowser), you Brett> can reduce this to a single line: Brett> use CGI::Carp qw(fatalsToBrowser); Just remember to turn that off before you deploy the code for productio

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Craig Moynes/Markham/IBM wrote: > unless(open(LOG,">$logfile")) { > print "Content-type: text/html\n\n"; > print "Couldn't open $logfile. $!\n"; > print "At $date, $ENV{'REMOTE_HOST'} couldn't enter the site."; > exit; Actually, if you use the CGI:Car

Re: writing to a text file ... sorry

2001-05-31 Thread Paul
--- Nichole Bialczyk <[EMAIL PROTECTED]> wrote: > i'm sorry. i didn't think that you guys would want me to include my > code. i just assumed that i should try to make my question to the > point with as little text as possible. i am still having the same > problem (and i do have the "). Better to

Re: writing to a text file ... sorry

2001-05-31 Thread Craig Moynes/Markham/IBM
Bialczyk To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>cc:

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Nichole Bialczyk wrote: > i'm sorry. i didn't think that you guys would want me to include my code. > i just assumed that i should try to make my question to the point with as > little text as possible. i am still having the same problem (and i do > have the "). here is my ex

Re: writing to a text file ... sorry

2001-05-31 Thread Nichole Bialczyk
i'm sorry. i didn't think that you guys would want me to include my code. i just assumed that i should try to make my question to the point with as little text as possible. i am still having the same problem (and i do have the "). here is my exact code: sub log { if (open(LOG,">$logfile"))

Re: writing to a text file

2001-05-31 Thread Stephen P. Potter
Lightning flashed, thunder crashed and "Nichole Bialczyk" <[EMAIL PROTECTED]> whisper ed: | if(! open(LOG, ">xxx.txt)) { I really hate to pick on you, but if you are going to provide sample code, please make sure you are providing exactly what is in the script (cut'n'paste as opposed to retyping)

Re: writing to a text file

2001-05-31 Thread Craig Moynes/Markham/IBM
Uhm what about an ending " at your file name. if(! open(LOG, ">xxx.txt")) { instead of : >if(! open(LOG, ">xxx.txt)) { > print "Content-type: text/html\n\n"; > print "Can't open xxx.txt\n"; > exit; >} - Craig Moynes Internship Student netCC Developm

Re: writing to a text file --> permission denied

2001-05-31 Thread Michael Fowler
On Thu, May 31, 2001 at 02:08:54AM -0500, Nichole Bialczyk wrote: > - Original Message - > From: "Asim Memon" <[EMAIL PROTECTED]> > To: "Nichole Bialczyk" <[EMAIL PROTECTED]> > Sent: Thursday, May 31, 2001 2:07 AM > Subject: Re: writing to a

Re: writing to a text file --> permission denied

2001-05-31 Thread Me
> open...or die... statement, but then i got an > internal server error 500. You should add the following lines to your cgi scripts: use CGI::Carp qw(fatalsToBrowser); And/or you should execute your perl scripts from a command line before going through the web server, to make sure they do r

Re: writing to a text file --> permission denied

2001-05-30 Thread Nichole Bialczyk
that's what i thought, too. but i already did that. - Original Message - From: "Asim Memon" <[EMAIL PROTECTED]> To: "Nichole Bialczyk" <[EMAIL PROTECTED]> Sent: Thursday, May 31, 2001 2:07 AM Subject: Re: writing to a text file --> permission den

writing to a text file --> permission denied

2001-05-30 Thread Nichole Bialczyk
eally appreciate everyone's help. maybe one day i can aspire to be a guru! :) - Original Message - From: "Michael Fowler" <[EMAIL PROTECTED]> To: "Nichole Bialczyk" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, May 31, 2001 1:17 AM Sub

Re: writing to a text file

2001-05-30 Thread Hasanuddin Tamir
On Thu, 31 May 2001, Nichole Bialczyk <[EMAIL PROTECTED]> wrote, > Date: Thu, 31 May 2001 01:00:49 -0500 > From: Nichole Bialczyk <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: writing to a text file > > i'm trying to write a log file and i can'

Re: writing to a text file

2001-05-30 Thread Michael Fowler
On Thu, May 31, 2001 at 01:00:49AM -0500, Nichole Bialczyk wrote: > i'm trying to write a log file and i can't seem to open it to write to. the file >does exist. here is the code for opening the file: > > if(! open(LOG, ">xxx.txt)) { >print "Content-type: text/html\n\n"; >print "Can't op

writing to a text file

2001-05-30 Thread Nichole Bialczyk
i'm trying to write a log file and i can't seem to open it to write to. the file does exist. here is the code for opening the file: if(! open(LOG, ">xxx.txt)) { print "Content-type: text/html\n\n"; print "Can't open xxx.txt\n"; exit; } print LOG "At $date, $ENV{'REMOTE_HOST'} etc., etc.