Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread John W. Krahn
Danny Fang wrote: > Hi, Hello, > I'm new to PERL and would like to seek help for the task mentioned below: > > I'm attempting to read the contents of a file containing rows with the format > shown below: > version|exchange|area|date|time|callmod|callid|callno1|callno2|part2|start_date|start_tim

Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread Jay Savage
On 11/21/05, Danny Fang <[EMAIL PROTECTED]> wrote: > Hi, > I'm new to PERL and would like to seek help for the task mentioned below: > > I'm attempting to read the contents of a file containing rows with the > format shown below: > > version|exchange|area|date|time|callmod|callid|callno1|

Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread John Doe
Danny Fang am Montag, 21. November 2005 13.59: > Hi, Hello Danny > I'm new to PERL and would like to seek help for the task mentioned below: > > I'm attempting to read the contents of a file containing rows with the > format shown below: > version|exchange|... > E144100TT|006030766|0521|.

Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread Shawn Corey
Danny Fang wrote: However, I'm not sure how I could rewrite the newly modified column values of that particular row back into the file - I want to use the particular row which had its columns modified to be duplicated and appended to the end of the current file for a specific number of time

Modifying column values of file records and appending to end of file.

2005-11-21 Thread Danny Fang
Hi, I'm new to PERL and would like to seek help for the task mentioned below: I'm attempting to read the contents of a file containing rows with the format shown below: version|exchange|area|date|time|callmod|callid|callno1|callno2|part2|start_date|start_time|spare|dur|flag_ini|indica

Re: testing for end-of-file

2004-08-04 Thread James Edward Gray II
On Aug 4, 2004, at 9:57 AM, james derry wrote: hi, all, the answer to my question in probably obvious to all but me, but i don't know how to test for end-of-file. basically, i want the conditional to test TRUE if $lineCounter eq $lineLength OR the end-of-file has been reached. i can'

testing for end-of-file

2004-08-04 Thread james derry
hi, all, the answer to my question in probably obvious to all but me, but i don't know how to test for end-of-file. basically, i want the conditional to test TRUE if $lineCounter eq $lineLength OR the end-of-file has been reached. i can't find how do this in my learning perl or the

How do i return the end of file message in a subroutine?

2004-07-22 Thread jason corbett
I am using an application called "Title" to kick off jobs instead of using the cron. I am told that this application doesn't accept SQL embedded inside perl scripts unless the SQL or perl script returns the end of file message. What method in perl returns the eof message?

Re: End-of-File

2001-09-06 Thread Brett W. McCoy
e "") > { > chop ($line); > @array = split(/ /, $line); > $wordcount += @array; > $line = ; > } > print ("Total number of words : $wordcount\n"); > > It's a simple straightforward piece of code that counts words;

RE: end of file

2001-09-06 Thread Jaimee Spencer
Try CTRL-Z -Original Message- From: Marcelo Aimeta [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 2:51 PM To: [EMAIL PROTECTED] Subject: end of file Hi! I'm working my way through sams "Teach yourself perl in 21 days" and I'm stuck. This is the

end of file

2001-09-06 Thread Marcelo Aimeta
@array; $line = ; } print ("Total number of words : $wordcount\n"); It's a simple straightforward piece of code that counts words; the problem is that to quit the code, you have to enter CTRL-D, end-of-file, and I can't get that to work. I'm working on a pc, win98, acti

End-of-File

2001-09-06 Thread Marcelo Aimeta
line); $wordcount += @array; $line = ; } print ("Total number of words : $wordcount\n"); It's a simple straightforward piece of code that counts words; the problem is that to quit the code, you have to enter CTRL-D, end-of-file, and I can't get that to work.