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
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
[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
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
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 )
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: