Re: How to process multi-line records ?

2003-12-08 Thread Kevin Pfeiffer
Hi Perl-List! Stuart Clemons wrote: [...] Name: Joe Blow DataField1: x DateField1: 07/07/77 DataField2: x DateField2: 12/07/03 Name: Fi Doe DataField1: x DateField1: 08/08/88 DataField2: x DateField2: 12/12/03 etc. There is an empty line that separates each

RE: How to process multi-line records ?

2003-12-08 Thread Tom Kinzer
Nice. Don't forget to get along well with the other children by putting $/ back! -Tom Kinzer -Original Message- From: Kevin Pfeiffer [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: Re: How to process multi-line records ? Hi Perl-List

Re: How to process multi-line records ?

2003-12-08 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: Hi all: This newbie is back looking for some hints on how to handle this problem in processing a file that has multiline records that look something like this: Name: Joe Blow DataField1: x DateField1: 07/07/77 DataField2: x DateField2: 12/07/03

Re: How to process multi-line records ?

2003-12-08 Thread John W. Krahn
Stuart Clemons wrote: Hi all: This newbie is back looking for some hints on how to handle this problem in processing a file that has multiline records that look something like this: Name: Joe Blow DataField1: x DateField1: 07/07/77 DataField2: x DateField2: 12/07/03

RE: How to process multi-line records ?

2003-12-07 Thread Tom Kinzer
array or two should do the trick. depends on what you want to check in your conditionals. are the number of lines per data element static or dynamic? to separate the logic between, collecting the data and the records conditionals, just separate into 2 loops. LOGIC code only: while ( IN )

Re: How to process multi-line records ?

2003-12-07 Thread Randy W. Sims
On 12/7/2003 9:34 PM, [EMAIL PROTECTED] wrote: Hi all: This newbie is back looking for some hints on how to handle this problem in processing a file that has multiline records that look something like this: Name: Joe Blow DataField1: x DateField1: 07/07/77 DataField2: x DateField2: